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

Re: [RFC/PATCH] git: add --no-replace option to disable replacing

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Oct 12, 2009, 06:32 UTC
Message-ID
<4AD2CD6A.2020509@viscovery.net>
In-Reply-To
<20091011153227.8487.81803.chriscool@tuxfamily.org>
Christian Couder schrieb:
Show 14 quoted lines
> So there is no way to disable it for some commands, which is annoying
> when we want to get information about a commit that has been replaced.
> 
> For example:
> 
> $ git cat-file -p N
> 
> would output information about the replacement commit if commit N is
> replaced.
> 
> With the "--no-replace" option that this patch adds it is possible to
> get information about the original commit using:
> 
> $ git --no-replace cat-file -p N

I think it makes sense. But given the exotic nature of this option, I'd prefer a more specific name, e.g., --no-replace-objects.

-- Hannes
Previous: Christian Couder
Message 2 of 2 in “git: add --no-replace option to disable replacing”
  1. git: add --no-replace option to disable replacingChristian Couder, Oct 11, 2009
  2. Johannes SixtOct 12, 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.