aboutsummaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2008-02-22 12:56:50 -0600
committerJunio C Hamano <gitster@pobox.com>2008-02-22 22:57:38 -0800
commit2b81fab2885256501d0bba6e16e516addb667bf3 (patch)
treef156c514abbc71be58a3222b91472a548519d03b /refs.c
parent3c386aa3380b698396d522f1132343ced482ff42 (diff)
downloadgit-2b81fab2885256501d0bba6e16e516addb667bf3.tar.gz
git-2b81fab2885256501d0bba6e16e516addb667bf3.tar.xz
git-reflog: add option --rewrite to update reflog entries while expiring
Certain sanity checks on the reflog assume that each entry will contain a reference to the previous entry. i.e. that the "old" sha1 field of a reflog entry will be equal to the "new" sha1 field of the previous entry. When reflog entries are deleted, this assumption may not hold. This patch adds a new option to git-reflog which causes the subcommands "expire" and "delete" to rewrite the "old" sha1 field of each reflog entry so that it points to the previous reflog entry. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
0 files changed, 0 insertions, 0 deletions