Re: git add -p—splitting hunks, limit is too large
- From
Christian Neukirchen <chneukirchen@gmail.com>
- Date
- Sep 2, 2016, 19:49 UTC
- Message-ID
- <87mvjqjd48.fsf@juno.home.vuxu.org>
- In-Reply-To
- <20160902191425.ki7nfhlqgnihoqpw@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> Splitting to single lines means you need to remember to add the matched > pairs, which might be arbitrarily far apart. That's not really any > different than dumping the hunk in your editor, but I find there that > it's easy to rearrange and group things as appropriate.
My main use case for this would be to split a plain addition into several small additions. Which would be much easier with the menu-driven approach.
(Mostly I just use magit, but sometimes I want to do this on machines without emacs set up.)
-- Christian Neukirchen <chneukirchen@gmail.com> http://chneukirchen.org