sequencer: remove pointless rollback_lock_file()
PATCH 1/1 sequencer: remove pointless rollback_lock_file()
The file is gone even if commit_lock_file() fails.
Signed-off-by Oswald Buddenhagen <[email protected]>
--- sequencer.c | 1 - 1 file changed, 1 deletion(-)
sequencer.c +0 -1
@@ -3676,7 +3676,6 @@ static int safe_append(const char *filename, const char *fmt, ...) }if (commit_lock_file (&lock) <0 ) {strbuf_release (&buf); -rollback_lock_file (&lock);return error (_ ("failed to finalize '%s'" ), filename); }
Signature · 1 line
2.40.0.152.g15d061e6df
Quoted 1 line · Oswald Buddenhagen
The file is gone even if
commit_lock_file()fails.
Good spotting.
I glanced over hits from "git grep -A6 commit_lock_file \*.c" to see if there is a similar mistake, but this seems to be the only one.
Will queue. Thanks.
Quoted 16 lines
Signed-off-by Oswald Buddenhagen <[email protected]>--- sequencer.c | 1 - 1 file changed, 1 deletion(-)sequencer.c +0
-1@@ -3676,7 +3676,6 @@ static int safe_append(const char *filename, const char *fmt, ...) }if (commit_lock_file (&lock) <0 ) {strbuf_release (&buf); -rollback_lock_file (&lock);return error (_ ("failed to finalize '%s'" ), filename); }