aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-reflog.txt
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2008-02-22 12:47:08 -0600
committerJunio C Hamano <gitster@pobox.com>2008-02-22 22:52:06 -0800
commit4cd883d724ec36a120263d47058e65c6d1de642f (patch)
tree9f163e98fc09d651109323245c71d54a3d403b5f /Documentation/git-reflog.txt
parent22c430ad8468133fa5ed46d8407d7f4cde2c4a0e (diff)
downloadgit-4cd883d724ec36a120263d47058e65c6d1de642f.tar.gz
git-4cd883d724ec36a120263d47058e65c6d1de642f.tar.xz
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 'Documentation/git-reflog.txt')
0 files changed, 0 insertions, 0 deletions