Russell Belfer
fbec2fb991
Fix checkout to know about TYPECHANGE diffs
2012-10-09 11:54:01 -07:00
Russell Belfer
fade21db0a
Improve error propogation in checkout
2012-10-09 11:53:00 -07:00
Russell Belfer
bae957b95d
Add const to all shared pointers in diff API
...
There are a lot of places where the diff API gives the user access
to internal data structures and many of these were being exposed
through non-const pointers. This replaces them all with const
pointers for any object that the user can access but is still
owned internally to the git_diff_list or git_diff_patch objects.
This will probably break some bindings... Sorry!
2012-09-25 16:35:05 -07:00
Michael Schubert
d75074f4c0
Fix -Wmaybe-uninitialized warning
2012-09-22 12:29:16 +02:00
nulltoken
9e592583fc
checkout: add notification callback for skipped files
2012-09-21 08:08:29 +02:00
nulltoken
9ac8b113b1
Fix MSVC amd64 compilation warnings
2012-09-20 14:10:05 +02:00
nulltoken
28abf3dbd2
checkout: prefer mode_t type usage over int
2012-09-20 14:10:04 +02:00
nulltoken
397837197d
checkout: Mimic git_diff_options storage of paths
2012-09-17 20:27:28 +02:00
nulltoken
5e4cb4f4da
checkout : reduce memory usage when not filtering
2012-09-17 10:48:36 +02:00
nulltoken
5af61863dd
checkout: drop git_checkout_reference()
2012-09-17 10:48:30 +02:00
nulltoken
c214fa1caf
checkout: segregate checkout strategies
2012-09-17 10:48:30 +02:00
nulltoken
e93af30411
checkout: introduce git_checkout_index()
2012-09-17 10:48:27 +02:00
nulltoken
3aa443a951
checkout: introduce git_checkout_tree()
2012-09-17 10:48:26 +02:00
nulltoken
35d2e449bd
checkout: cleanup misplaced declaration
2012-09-06 18:40:07 +02:00
Russell Belfer
97a17e4e9f
Fix valgrind warnings and spurious error messages
...
Just clean up valgrind warnings about uninitialized memory
and also clear out errno in some cases where it results in
a false error message being generated at a later point.
2012-08-24 12:19:22 -07:00
nulltoken
9d7ac675d0
tree entry: rename git_tree_entry_attributes() into git_tree_entry_filemode()
2012-08-21 23:15:13 +02:00
Ben Straub
5f4d2f9f65
Checkout: fix problem with detached HEAD.
2012-07-31 19:49:19 -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
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
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
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
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
6eb240b0b4
Checkout: use caller's flags for open()
2012-07-26 19:09:37 -07:00
Ben Straub
095ccc013f
Checkout: implementation of most options
2012-07-26 16:31:49 -07: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
Ben Straub
dc03369c07
checkout: create submodule dirs
2012-07-21 20:12:28 -07:00
Ben Straub
8651c10f1e
Checkout: obey core.symlinks.
2012-07-17 19:57:37 -07:00
Ben Straub
1d68fcd04b
Checkout: handle symlinks.
...
Includes unfinished win32 implementation.
2012-07-16 16:22:41 -07:00
Ben Straub
9587895f57
Migrate code to git_filter_blob_contents.
...
Also removes the unnecessary check for filter
length, since git_filters_apply does the right
thing when there are none, and it's more efficient
than this.
2012-07-16 12:06:23 -07:00
Ben Straub
41ad70d0a8
Use git_blob__getbuf.
2012-07-16 11:32:24 -07:00
Ben Straub
dc1b0909d6
Create filtered_blob_contents out of parts on hand.
2012-07-13 16:44:13 -07:00
Ben Straub
81167385e9
Fix compile and workings on msvc.
...
Signed-off-by: Ben Straub <bstraub@github.com>
2012-07-11 15:41:37 -07:00
Ben Straub
822d9dd51f
Remove duplicate of git_repository_head_tree.
2012-07-11 09:50:12 -07:00
Ben Straub
8fb5e4039e
Plug leak.
2012-07-10 08:58:40 -07:00
Ben Straub
aed794d042
Checkout: only walk tree once while checking out.
2012-07-09 20:32:26 -07:00
Ben Straub
4a26ee4fd4
Checkout: reindent, fix uninit. variable.
2012-07-09 20:09:28 -07:00
Ben Straub
0e874b12d8
Apply filters on checkout.
2012-07-06 10:22:45 -08:00
Ben Straub
24b0d3d56e
Checkout: read blob objects to file.
...
Properly handling file modes. Still needs line-
ending transformations.
2012-06-25 16:02:16 -07:00
Ben Straub
ec532d5ede
Checkout: initial tree walkers.
2012-06-21 14:54:12 -07:00
Ben Straub
14741d62d9
Clone: new home for git_checkout_force.
2012-06-21 11:13:19 -07:00