Re: [RFC] Two conceptually distinct commit commands
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Dec 4, 2006, 21:19 UTC
- Message-ID
- <el239s$e1i$1@sea.gmane.org>
- In-Reply-To
- <87bqmj2zit.wl%cworth@cworth.org>
Carl Worth wrote:
Show 9 quoted lines
> But what might be very interesting is a modified "git-apply --index" > that would not fail in this case, but would instead do the following: > > 1. Apply the patch to the working tree > > 2. Apply the patch to the index > > And of course, if either fails then the entire apply operation fails, > leaving no changes to working tree or to the index.
Or even new option to git-apply, namely --index-only, which would apply patch to index only.
BTW. With git-apply we have three possibilities to apply patch to: HEAD, index and working tree version, and three possibilities to store result in: working tree only, working tree and index both, and index only.
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git