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