diff options
author | Brandon Casey <casey@nrlssc.navy.mil> | 2008-02-22 13:04:12 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-22 22:57:38 -0800 |
commit | 55f105653715356fe0b2392445a6f394b891402c (patch) | |
tree | 78a6820fbaf3eb82d3d04f58862abdfa08366e4e /builtin-pack-objects.c | |
parent | refs.c: make close_ref() and commit_ref() non-static (diff) | |
download | tgif-55f105653715356fe0b2392445a6f394b891402c.tar.xz |
git-reflog: add option --updateref to write the last reflog sha1 into the ref
Certain sanity checks on the reflog assume that the sha1 of the top reflog
entry will be equal to the sha1 stored in the ref.
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 update the ref with the sha1 of the top-most reflog entry.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-pack-objects.c')
0 files changed, 0 insertions, 0 deletions