diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-07-16 17:12:18 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-16 17:12:18 -0700 |
commit | e75bf76f5462af4185d8260f6feecf24dd24a516 (patch) | |
tree | f079b41f350ea291f968ad531298053212c15922 /builtin-checkout.c | |
parent | 1c7ac06dc612c469d74be6be8164465d65a7829a (diff) | |
parent | 489e351ea03e78746bad0c0ad4fcf4a63920256d (diff) | |
download | git-e75bf76f5462af4185d8260f6feecf24dd24a516.tar.gz |
Merge branch 'rs/archive'
* rs/archive:
archive: remove extra arguments parsing code
archive: unify file attribute handling
archive: centralize archive entry writing
archive: add baselen member to struct archiver_args
add context pointer to read_tree_recursive()
archive: remove args member from struct archiver
Diffstat (limited to 'builtin-checkout.c')
-rw-r--r-- | builtin-checkout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-checkout.c b/builtin-checkout.c index d6641c2c56..fbd5105a83 100644 --- a/builtin-checkout.c +++ b/builtin-checkout.c @@ -43,7 +43,7 @@ static int post_checkout_hook(struct commit *old, struct commit *new, } static int update_some(const unsigned char *sha1, const char *base, int baselen, - const char *pathname, unsigned mode, int stage) + const char *pathname, unsigned mode, int stage, void *context) { int len; struct cache_entry *ce; @@ -67,7 +67,7 @@ static int update_some(const unsigned char *sha1, const char *base, int baselen, static int read_tree_some(struct tree *tree, const char **pathspec) { - read_tree_recursive(tree, "", 0, 0, pathspec, update_some); + read_tree_recursive(tree, "", 0, 0, pathspec, update_some, NULL); /* update the index with the given tree's info * for all args, expanding wildcards, and exit |