Ben Straub
5280f4e698
Add checkout.h to git2.h.
...
Also correcting some documentation strings.
2012-07-31 19:39:06 -07:00
Ben Straub
78cd966aaf
Checkout: fix crlf tests under win32.
2012-07-31 16:24:04 -07:00
Ben Straub
e4bac3c469
Checkout: crlf filter.
2012-07-31 15:38:12 -07:00
Ben Straub
8e4aae1ae5
Checkout: handle file modes properly.
...
Global file mode override now works properly with
the file mode stored in the tree node.
2012-07-31 10:46:38 -07:00
Ben Straub
3f584b5027
Try to fix Travis.
2012-07-31 09:01:11 -07:00
Ben Straub
383fb799ee
Rename example function to avoid name collision.
2012-07-31 08:51:38 -07:00
Ben Straub
7e02c7c56a
Checkout: save index on checkout.
2012-07-31 08:45:42 -07:00
Ben Straub
4bf5115642
Enable stats on git_index_read_tree.
...
Replace with the contents of
git_index_read_tree_with_stats() and improve
documentation comments.
2012-07-30 15:48:06 -07:00
Ben Straub
84595a30c0
Add clone to the network example.
2012-07-30 14:38:32 -07:00
Ben Straub
f1587b97a1
Checkout: use git_index_read_tree_with_stats.
...
New variant of git_index_read_tree that fills in
the 'total' field of a git_indexer_stats struct
as it's walking the tree.
2012-07-30 14:37:40 -07:00
Ben Straub
e0681f6d07
Checkout: disable file-mode test on win32.
2012-07-27 20:39:43 -07:00
Ben Straub
32beb2ecfe
Fix testrepo ref count to include new branch.
2012-07-27 20:36:12 -07:00
Ben Straub
b31667fb69
Checkout: add head- and ref-centric checkouts.
...
Renamed git_checkout_index to what it really was,
and removed duplicate code from clone.c. Added
git_checkout_ref, which updates HEAD and hands off
to git_checkout_head.
Added tests for the options the caller can pass to
git_checkout_*.
2012-07-27 20:31:05 -07:00
Ben Straub
4d83399d35
Adjust for msvc pedantry.
2012-07-27 11:55:58 -07:00
Ben Straub
b494cdbdb2
Checkout: handle deeply-nested submodules better.
...
Now creating intermediate directories where the
submodule is deep, like "src/deps/foosubmodule".
2012-07-27 11:50:32 -07:00
Ben Straub
8a155a044b
Fix mismatched git_branch_create args.
2012-07-27 11:49:34 -07:00
Ben Straub
7affe23db0
Use new git_remote_update_tips signature.
2012-07-27 11:23:44 -07:00
Ben Straub
a4827a5b5c
Merge remote-tracking branch 'upstream/development' into test-merge
2012-07-27 11:17:21 -07:00
Ben Straub
15445f9ef7
Turn off network-dependent test for CI.
2012-07-27 11:14:30 -07:00
Vicent Martí
31637cd56a
Merge pull request #839 from nulltoken/topic/odb-foreach-documentation
...
odb: add some documentation to the foreach() test
2012-07-27 11:09:04 -07:00
Vicent Martí
60d5cc5747
Merge pull request #834 from carlosmn/network-callbacks
...
Add a struct for network callbacks
2012-07-27 09:52:44 -07:00
Vicent Marti
f0244463ad
branch: Add repository
argument to create
...
Yes, we can get the repository from the owner of the object, but having
it marked explicitly makes the API more consistent.
2012-07-27 18:49:37 +02:00
Vicent Marti
b41a30bdbb
Merge remote-tracking branch 'nulltoken/topic/branch-rework' into development
2012-07-27 18:45:55 +02:00
Vicent Marti
b84f75c357
reflog: Rename entry_drop
to drop
2012-07-27 18:43:02 +02:00
Vicent Marti
43b67d496b
Merge remote-tracking branch 'nulltoken/topic/reflog-delete' into development
2012-07-27 18:39:40 +02:00
Ben Straub
6eb240b0b4
Checkout: use caller's flags for open()
2012-07-26 19:09:37 -07:00
Carlos Martín Nieto
c0c390255a
remote: fix C99-ism
2012-07-27 02:37:15 +02:00
Carlos Martín Nieto
581b6a8e90
Merge pull request #838 from scunz/remote_push_url
...
Add support for push-urls
2012-07-26 17:29:58 -07:00
Ben Straub
095ccc013f
Checkout: implementation of most options
2012-07-26 16:31:49 -07:00
Sascha Cunz
eff5b49927
Remotes: Use correct url in git_remote_connect
2012-07-27 00:08:56 +02:00
Sascha Cunz
413d556384
Remotes: Save a cleaned pushurl (by deleting it from the config)
2012-07-27 00:08:54 +02:00
Sascha Cunz
8689a69d09
Tests: Test remote's pushurl
2012-07-26 23:08:24 +02:00
Sascha Cunz
765015902a
Remotes: Setter for url+pushurl; Getter for pushurl
2012-07-26 23:08:22 +02:00
Sascha Cunz
3ed4b5012b
Remotes: Load/Save for fetch.foo.pushurl
2012-07-26 22:36:43 +02:00
Sascha Cunz
cb020f0d99
Remove unneccessary string transformation
2012-07-26 22:36:43 +02:00
Ben Straub
b401bace1b
Restructure for better checkout options
...
* Removed the #define for defaults
* Promoted progress structure to top-level API call
argument
2012-07-26 13:12:21 -07:00
Ben Straub
ef9905c990
checkout: introduce git_checkout_opts
...
Refactor checkout into several more-sensible
entry points, which consolidates common options
into a single structure that may be passed around.
2012-07-26 12:58:44 -07:00
Michael Schubert
0aeae70553
tests-clar/status: fix missing-prototype warning
2012-07-25 17:01:50 +02:00
nulltoken
1d733b573a
odb: add some documentation to the foreach() test
2012-07-25 11:23:27 +02:00
nulltoken
c3be5c5af0
reflog: keep the reflog name in sync with the reference name
2012-07-25 08:01:13 +02:00
nulltoken
40c75652d0
reflog: prevent git_reflog_append() from persisting the reflog back to disk
2012-07-25 07:53:32 +02:00
nulltoken
ae8331784e
reflog: prevent git_reflog_read() from chocking when no log exists yet
2012-07-25 07:53:31 +02:00
nulltoken
bd72425d16
reflog: introduce git_reflog_write()
2012-07-25 07:53:30 +02:00
nulltoken
d284b3de63
reflog: rename git_reflog_write() to git_reflog_append()
2012-07-25 07:53:30 +02:00
nulltoken
59341a5d59
reflog: introduce git_reflog_entry_drop()
2012-07-25 07:53:29 +02:00
nulltoken
7c458e3aee
reflog: add GIT_OID_HEX_ZERO constant
2012-07-25 07:53:27 +02:00
nulltoken
1cb157184b
tests: reorganize reflog tests
2012-07-25 07:53:27 +02:00
Russell Belfer
7779437fd5
Merge pull request #799 from yorah/fix/issue-787
...
Fix/issue 787
2012-07-24 11:21:32 -07:00
nulltoken
786a17cd28
branch: enforce git_branch_delete() parameter checking
2012-07-24 16:09:50 +02:00
nulltoken
ef4d795ec5
refs: drop git_reference_remote_tracking_from_branch()
2012-07-24 16:09:49 +02:00