diff options
author | Brandon Casey <casey@nrlssc.navy.mil> | 2008-02-22 12:56:50 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-22 22:57:38 -0800 |
commit | 2b81fab2885256501d0bba6e16e516addb667bf3 (patch) | |
tree | f156c514abbc71be58a3222b91472a548519d03b /cache-tree.c | |
parent | 3c386aa3380b698396d522f1132343ced482ff42 (diff) | |
download | git-2b81fab2885256501d0bba6e16e516addb667bf3.tar.gz |
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 'cache-tree.c')
0 files changed, 0 insertions, 0 deletions