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

Re: [PATCH v2 2/2] rebase -i: use config file format to save author information

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Jun 21, 2009, 06:51 UTC
Message-ID
<alpine.LNX.2.00.0906210244510.2147@iabervon.org>
In-Reply-To
<7vprcyt7fk.fsf@alter.siamese.dyndns.org>
On Sat, 20 Jun 2009, Junio C Hamano wrote:
Show 16 quoted lines
> Christian Couder <chriscool@tuxfamily.org> writes:
> 
> > This is better than saving in a shell script, because it will make
> > it much easier to port "rebase -i" to C.
> 
> Hmph.
> 
> We used to parse a commit object in one go into variables, and I would
> have imagined that a rewrite in C will read a commit object to get the
> author information in variables in-core, without having to write any
> temporary file.
> 
> But with your patch, it starts to use a temporary file, and forces the C
> rewrite to do the same.  It closes the door for a more efficient rewrite.
> 
> Why is this a good change?

It was always using a temporary file; it just used to use a temporary file that was a shell script fragment and needed to be read with "eval". It can't be done entirely in core because it may be determined before a conflict and only used when run with --continue after the user resolves the conflict.

	-Daniel
*This .sig left intentionally blank*
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 8 in “rebase -i: use config file format to save author information”
  1. 2/2 rebase -i: use config file format to save author informationChristian Couder, Jun 21, 2009
  2. Junio C HamanoJun 21, 2009
  3. Daniel BarkalowJun 21, 2009
  4. Junio C HamanoJun 21, 2009
  5. Jakub NarebskiJun 21, 2009
  6. Junio C HamanoJun 21, 2009
  7. Christian CouderJun 21, 2009
  8. Junio C HamanoJun 21, 2009

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.