Re: bug in git-revert
- From
Jeff King <peff@peff.net>
- Date
- Mar 2, 2008, 07:02 UTC
- Message-ID
- <20080302070221.GA10629@coredump.intra.peff.net>
- In-Reply-To
- <20080302064449.GA6334@coredump.intra.peff.net>
On Sun, Mar 02, 2008 at 01:44:49AM -0500, Jeff King wrote:
Show 11 quoted lines
> --- a/builtin-revert.c
> +++ b/builtin-revert.c
> @@ -279,6 +279,8 @@ static int revert_or_cherry_pick(int argc, const char **argv)
> if (get_sha1("HEAD", head))
> die ("You do not have a valid HEAD");
> wt_status_prepare(&s);
> + s.fp = NULL;
> + wt_status_print_updated(&s);
> if (s.commitable)
> die ("Dirty index: cannot %s", me);
> discard_cache();Actually, this isn't right. It needs to call wt_status_print(&s), since it does some magic that wt_status_print_updated() requires to run correctly.
-Peff