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

Re: [RFC/PATCH] replace: add --graft option

From
Junio C Hamano <gitster@pobox.com>
Date
May 19, 2014, 18:34 UTC
Message-ID
<xmqqoayt1usx.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20140519173505.GA28673@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 12 quoted lines
> On Mon, May 19, 2014 at 10:25:10AM -0700, Junio C Hamano wrote:
>
>> The headers up to committer are cast in stone in their ordering, and
>> I do not immediately see how loosening it would be beneficial.
>> 
>> Unless you are trying to give users a new way to record exactly the
>> same commit in twenty-four (or more) ways with their own object
>> names, that is ;-)
>
> Sorry, I didn't mean to imply that people can do what they want with
> that ordering. Implementations that reorder the headers are stupid and
> wrong, and should be fixed.

Yeah, that was the only thing I meant to say, and what you said in the rest of message makes sense to me. I very much like the approach to parse line-by-line, noticing products from stupid and wrong implementations and warning or erroring out against them, while allowing an option to be lenient to help users who want to fix their repositories contaminated with such objects.

Previous: Jeff KingNext: Christian Couder
Message 6 of 8 in “replace: add --graft option”
  1. replace: add --graft optionChristian Couder, May 18, 2014
  2. Michael HaggertyMay 19, 2014
  3. Jeff KingMay 19, 2014
  4. Junio C HamanoMay 19, 2014
  5. Jeff KingMay 19, 2014
  6. Junio C HamanoMay 19, 2014
  7. Christian CouderMay 23, 2014
  8. Jeff KingMay 19, 2014

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.