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