Commit 1f2362a9 authored by Markus Heidelberg's avatar Markus Heidelberg Committed by Junio C Hamano

builtin/commit: remove unnecessary variable definition

The file descriptor is already defined at the beginning of the function.
Signed-off-by: Markus Heidelberg's avatarMarkus Heidelberg <[email protected]>
Signed-off-by: default avatarJunio C Hamano <[email protected]>
parent 73276235
......@@ -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);
if (write_cache(fd, active_cache, active_nr) ||
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment