summaryrefslogtreecommitdiff
path: root/reflog-walk.c
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2008-02-22 18:47:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-27 21:26:24 (GMT)
commit7a0a34ca6f31c6bb5d24ccc0cdab606736d7a322 (patch)
treec4c82fd80edf4e489a8a1720ff2df5083539c627 /reflog-walk.c
parent6ecbc851fb30f540e1a25761f221aab963cfe619 (diff)
downloadgit-7a0a34ca6f31c6bb5d24ccc0cdab606736d7a322.zip
git-7a0a34ca6f31c6bb5d24ccc0cdab606736d7a322.tar.gz
git-7a0a34ca6f31c6bb5d24ccc0cdab606736d7a322.tar.bz2
builtin-reflog.c: don't install new reflog on write failure
When expiring reflog entries, a new temporary log is written which contains only the entries to retain. After it is written, it is renamed to replace the existing reflog. Currently, we check that writing of the new log is successful and print a message on failure, but the original reflog is still replaced with the new reflog even on failure. This patch causes the original reflog to be retained if we fail when writing the new reflog. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reflog-walk.c')
0 files changed, 0 insertions, 0 deletions