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

Re: [PATCH] revert: only suggest to commit if not passing -n

From
Jared Hance <jaredhance@gmail.com>
Date
Jul 23, 2010, 16:42 UTC
Message-ID
<20100723164218.GA2284@localhost.localdomain>
In-Reply-To
<1279806692-6762-1-git-send-email-carenas@sajinet.com.pe>
On Thu, Jul 22, 2010 at 06:51:32AM -0700, Carlo Marcelo Arenas Belon wrote:
Show 6 quoted lines
>  	strbuf_addstr(&helpbuf, "  After resolving the conflicts,\n"
> -		"mark the corrected paths with 'git add <paths>' or 'git rm <paths>'\n"
> -		"and commit the result");
> +		"mark the corrected paths with 'git add <paths>' or 'git rm <paths>'");
> +	if (!no_commit) {
> +		strbuf_addf(&helpbuf, "\nand commit the result");

Shouldn't we use strbuf_addstr here? We aren't using the formatting part of strbuf_addf.

Previous: Carlo Marcelo Arenas BelonNext: Carlo Marcelo Arenas Belon
Message 2 of 4 in “revert: only suggest to commit if not passing -n”
  1. revert: only suggest to commit if not passing -nCarlo Marcelo Arenas Belon, Jul 22, 2010
  2. Jared HanceJul 23, 2010
  3. revert: only suggest to commit if not passing -nCarlo Marcelo Arenas Belon, Jul 25, 2010
  4. Junio C HamanoAug 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.