Re: is it kosher for pre-commit to change what's staged?
- From
Dmitry Potapov <dpotapov@gmail.com>
- Date
- Nov 10, 2010, 22:17 UTC
- Message-ID
- <AANLkTi=W_hwU=3PTTqE4R8Cg5T=GMdMfBsKQ1YE0HWRe@mail.gmail.com>
- In-Reply-To
- <20101110204542.GA11201@gnu.kitenet.net>
On Wed, Nov 10, 2010 at 11:45 PM, Joey Hess <joey@kitenet.net> wrote:
Show 5 quoted lines
> > That said, since git commit stages the whole large file into the index, > which is the kind of expensive operation git-annex exists to avoid, > it's still not very practical to intercept the commit like that. What > I ideally need is a hook that is run before git commit stages anything.
Then maybe you should look at git smudge&clean filters. They perform conversation between the working tree and the index. Though I am not sure how well they work with big files.
Dmitry