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

Re: [RFC/PATCH 1/2] commit: add parse_commit_repl() to replace commits at parsing time

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Aug 18, 2010, 04:37 UTC
Message-ID
<AANLkTimZOOMnbbu_gHoeE2Bo_uDajN6Nw64eOtRFfVmM@mail.gmail.com>
In-Reply-To
<20100818042459.GD21185@burratino>
On Wed, Aug 18, 2010 at 2:24 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 10 quoted lines
> Christian Couder wrote:
>
>> The downside is that the sha1 will not be
>> consistent with the content anymore and that it will be more difficult to
>> realize that an object has been replaced as there will be no sha1 change to be
>> seen.
>
> Maybe in the long run it would make sense to keep a "replaced" flag
> and use it to mark the replace objects specially in some user-facing
> commands (like log --format=medium).

Sounds good (if uses really need to know that). It can be used for commit grafts too.

You would need to find an available bit flag first though. Currently object.flags is used for different purposes and its bit definitions are not centralized. So it's hard to find a "good" bit that no one uses yet, to become the "replaced" bit. OK I'm getting off-topic now.

-- 
Duy
Previous: Jonathan NiederNext: Junio C Hamano
Message 6 of 8 in “commit: add parse_commit_repl() to replace commits at parsing time”
  1. 1/2 commit: add parse_commit_repl() to replace commits at parsing timeChristian Couder, Aug 17, 2010
  2. Junio C HamanoAug 17, 2010
  3. Nguyen Thai Ngoc DuyAug 18, 2010
  4. Christian CouderAug 18, 2010
  5. Jonathan NiederAug 18, 2010
  6. Nguyen Thai Ngoc DuyAug 18, 2010
  7. Junio C HamanoAug 18, 2010
  8. Christian CouderAug 20, 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.