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

Re: [PATCH 3/3] builtin-branch: use strbuf in rename_branch()

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 19, 2008, 01:11 UTC
Message-ID
<alpine.DEB.1.00.0811190209470.30769@pacific.mpi-cbg.de>
In-Reply-To
<7vbpwcvb8i.fsf@gitster.siamese.dyndns.org>
Hi,
On Tue, 18 Nov 2008, Junio C Hamano wrote:
Show 9 quoted lines
> Miklos Vajna <vmiklos@frugalware.org> writes:
> 
> > -	snprintf(logmsg, sizeof(logmsg), "Branch: renamed %s to %s",
> > -		 oldref, newref);
> > +	strbuf_addf(&logmsg, "Branch: renamed %s to %s",
> > +		 oldref.buf, newref.buf);
> 
> I am wondering why nobody has complained until now, but shouldn't this 
> be oldname and newname?
I think that was the intention.  Lars?

Ciao, Dscho

Previous: Junio C HamanoNext: Lars Hjemli
Message 6 of 7 in “builtin-branch: use strbuf”
  1. 0/3 builtin-branch: use strbufMiklos Vajna, Nov 17, 2008
  2. 1/3 builtin-branch: use strbuf in delete_branches()Miklos Vajna, Nov 17, 2008
  3. 2/3 builtin-branch: use strbuf in fill_tracking_info()Miklos Vajna, Nov 17, 2008
  4. 3/3 builtin-branch: use strbuf in rename_branch()Miklos Vajna, Nov 17, 2008
  5. Junio C HamanoNov 18, 2008
  6. Johannes SchindelinNov 19, 2008
  7. Lars HjemliNov 19, 2008

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.