Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
builtin/commit: remove unnecessary variable definition
author
Markus Heidelberg
<markus.heidelberg@web.de>
Fri, 2 Apr 2010 12:27:19 +0000
(14:27 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 2 Apr 2010 18:38:00 +0000
(11:38 -0700)
The file descriptor is already defined at the beginning of the function.
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
7327623
)
diff --git
a/builtin/commit.c
b/builtin/commit.c
index 8cc9293e261c022c517fd3ccc476b54b0b7cbd2a..c5ab683d5b66d5ad85f53d13d6df71e29cd9234d 100644
(file)
--- a/
builtin/commit.c
+++ b/
builtin/commit.c
@@
-307,7
+307,7
@@
static char *prepare_index(int argc, const char **argv, const char *prefix, int
* (B) on failure, rollback the real index.
*/
if (all || (also && pathspec && *pathspec)) {
-
int
fd = hold_locked_index(&index_lock, 1);
+ fd = hold_locked_index(&index_lock, 1);
add_files_to_cache(also ? prefix : NULL, pathspec, 0);
refresh_cache_or_die(refresh_flags);
if (write_cache(fd, active_cache, active_nr) ||