diff options
author | Junio C Hamano <junkio@cox.net> | 2007-04-07 02:26:24 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-07 02:26:24 -0700 |
commit | ee9693e246669f48f6b058a1044cefa973a44c22 (patch) | |
tree | 80f0985cb14b578e9d13c04ad39a47dd8eccb3a2 /builtin-update-index.c | |
parent | 39415449ee9b0bfbd6026e38c6e5d43f99759bf2 (diff) | |
parent | 5e7f56ac33f7a5583f9fa4e0b6088709fea7a6f8 (diff) | |
download | git-ee9693e246669f48f6b058a1044cefa973a44c22.tar.gz |
Merge branch 'jc/index-output'
* jc/index-output:
git-read-tree --index-output=<file>
_GIT_INDEX_OUTPUT: allow plumbing to output to an alternative index file.
Conflicts:
builtin-apply.c
Diffstat (limited to 'builtin-update-index.c')
-rw-r--r-- | builtin-update-index.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-update-index.c b/builtin-update-index.c index d1e5cf7539..47d42ed645 100644 --- a/builtin-update-index.c +++ b/builtin-update-index.c @@ -495,7 +495,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix) /* We can't free this memory, it becomes part of a linked list parsed atexit() */ lock_file = xcalloc(1, sizeof(struct lock_file)); - newfd = hold_lock_file_for_update(lock_file, get_index_file(), 0); + newfd = hold_locked_index(lock_file, 0); if (newfd < 0) lock_error = errno; @@ -661,7 +661,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix) get_index_file(), strerror(lock_error)); } if (write_cache(newfd, active_cache, active_nr) || - close(newfd) || commit_lock_file(lock_file)) + close(newfd) || commit_locked_index(lock_file)) die("Unable to write new index file"); } |