Re: GIT - breaking backward compatibility
- From
- Brian Gerst <bgerst@didntduck.org>
- Date
- Sep 20, 2005, 04:41 UTC
- Message-ID
- <432F92FC.4000405@didntduck.org>
- In-Reply-To
- <Pine.LNX.4.58.0509192131260.2553@g5.osdl.org>
Linus Torvalds wrote:
Show 21 quoted lines
> > On Tue, 20 Sep 2005, Brian Gerst wrote: > >>Essentially what I want to do is: >> >>git-ls-files --others | xargs git-update-index --add -- >>git-ls-files --deleted | xargs git-update-index --remove -- >>git-ls-files --modified | xargs git-update-index -- >> >>This will completely resync the index and cache to the working tree >>state after applying a patch. > > > It will also be extremely inefficient. > > If you really have a _patch_, then "git-apply --index" is what you want to > apply it with. It applies a patch _and_ updates the index as appropriate. > It's how git-applymbox can apply hundreds of patches in short order. > > Linus >
That would be great, if git-apply accepted fuzzy patches. I am trying to apply the -mm series patches, which often are slightly out of date. Andrew doesn't rebase them until they won't apply at all.
-- Brian Gerst