git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/2] revert: don't print "Finished one cherry-pick." if commit failed

From
Christian Couder <chriscool@tuxfamily.org>
Date
Jul 13, 2010, 21:06 UTC
Message-ID
<201007132306.33828.chriscool@tuxfamily.org>
In-Reply-To
<20100712163934.GA1869@burratino>
On Monday 12 July 2010 18:39:35 Jonathan Nieder wrote:
Show 5 quoted lines
> Christian Couder wrote:
> > And, while at it, refactor commit code into a new run_git_commit()
> > function.
> 
> Probably should be two patches.
Ok, I will split it in two patches.
Show 18 quoted lines
> > +++ b/builtin/revert.c
> > @@ -492,48 +518,17 @@ static int do_pick_commit(void)
> > 
> >  			mebuf.buf, help_msg());
> >  		
> >  		rerere(allow_rerere_auto);
> >  	
> >  	} else {
> > 
> > -		fprintf(stderr, "Finished one %s.\n", mebuf.buf);
> > +		if (!no_commit)
> > +			res = run_git_commit(defmsg);
> > +		if (!res)
> > +			fprintf(stderr, "Finished one %s.\n", mebuf.buf);
> > 
> >  	}
> 
> Ack for this part.  Thanks.

Thanks, Christian.

Previous: Jonathan Nieder
Message 3 of 3 in “revert: don't print "Finished one cherry-pick." if commit failed”
  1. 2/2 revert: don't print "Finished one cherry-pick." if commit failedChristian Couder, Jul 12, 2010
  2. Jonathan NiederJul 12, 2010
  3. Christian CouderJul 13, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.