From: Greg Hewgill Date: Sun, 20 Jun 2010 11:11:12 GMT Subject: Re: Proposal for git stash rename Message-ID: <20100620111112.GH24805@occam.hewgill.net> In-Reply-To: On Sun, Jun 20, 2010 at 10:54:43AM +0000, ??var Arnfj??r?? Bjarmason wrote: > It's good to post a WIP PATCH even if it needs cleanup, just as a > point for further discussion. Thanks, point taken. WIP patch follows. This patch implements a "git stash rename" using a new "git reflog update" command that updates the message associated with a reflog entry. --- builtin/reflog.c | 149 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ git-stash.sh | 5 ++ t/t3903-stash.sh | 10 ++++ 3 files changed, 164 insertions(+), 0 deletions(-) diff --git a/builtin/reflog.c b/builtin/reflog.c index ebf610e..35eae1f 100644 --- a/builtin/reflog.c +++ b/builtin/reflog.c @@ -7,6 +7,7 @@ #include "diff.h" #include "revision.h" #include "reachable.h" +#include "strbuf.h" /* * reflog expire @@ -16,6 +17,8 @@ static const char reflog_expire_usage[] = "git reflog expire [--verbose] [--dry-run] [--stale-fix] [--expire=