author | Eric Wong <normalperson@yhbt.net> | |
Tue, 9 May 2006 08:08:23 +0000 (01:08 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 9 May 2006 08:29:38 +0000 (01:29 -0700) | ||
commit | dbd0f7d3221fbf8e9943a114c11e5b5e5fc0c201 | |
tree | 0d3842b2a4759d09280477d7723e94631bc5f44c | tree | snapshot |
parent | 31fff305bcc6db3b8082eac7fc9e441b27964fea | commit | diff |
apply: fix infinite loop with multiple patches with --index
When multiple patches are passed to git-apply, it will attempt
to open multiple file descriptors to an index, which means
multiple entries will be in the circular cache_file_list.
This change makes git-apply only open the index once and
write the index at exit.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
When multiple patches are passed to git-apply, it will attempt
to open multiple file descriptors to an index, which means
multiple entries will be in the circular cache_file_list.
This change makes git-apply only open the index once and
write the index at exit.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
apply.c | diff | blob | history |