From: Brandon Casey Date: Fri, 22 Feb 2008 18:56:50 GMT Subject: [PATCH 1/4] git-reflog: add option --rewrite to update reflog entries while expiring Message-ID: <47BF1AF2.8070506@nrlssc.navy.mil> In-Reply-To: <47BF18DF.6050100@nrlssc.navy.mil> 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 --- builtin-reflog.c | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/builtin-reflog.c b/builtin-reflog.c index 77f70a6..f685d76 100644 --- a/builtin-reflog.c +++ b/builtin-reflog.c @@ -15,7 +15,7 @@ static const char reflog_expire_usage[] = "git-reflog (show|expire) [--verbose] [--dry-run] [--stale-fix] [--expire=