Re: [PATCH v4 07/12] run-command: add clean_on_exit_handler
- From
Torsten Bögershausen <tboegi@web.de>
- Date
- Aug 5, 2016, 21:19 UTC
- Message-ID
- <b14c6063-cef8-56b4-eb57-7ab8577ecf0a@web.de>
- In-Reply-To
- <6C522B0F-F8F7-4B51-8BF0-67D9EDC97B3B@gmail.com>
On 2016-08-05 15.08, Lars Schneider wrote:
[]
Show 5 quoted lines
> Yeah it could do that. But then the filter cannot do things like > modifying the index after the fact... however, that might be considered > nasty by the Git community anyways... I am thinking about dropping > this patch in the next roll as it is not strictly necessary for my > current use case.
(Thanks Peff for helping me out with the EOF explanation)
I would say that a filter is a filter, and should do nothing else than filtering one file, (or a stream). When you want to modify the index, a hook may be your friend.