Re: Better visual separation of hunks in `git add -p`
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 28, 2024, 18:21 UTC
- Message-ID
- <xmqq1q7uusin.fsf@gitster.g>
- In-Reply-To
- <a9cffbe4aadd319760635ca6d5b4f465@manjaro.org>
Dragan Simic <dsimic@manjaro.org> writes:
Show 6 quoted lines
> Here's a possible solution, or better said a new configuration option, > which I've been thinking about for a while... When running "add -p", > displayed chunks can sometimes become confusing or a bit hard on the > eyes, but simply clearing the screen _before_ displaying any new step > (i.e. a new chunk, interactive help, etc.) could make it much easier > on the eyes. It would be a new option, of course.
Or your 'p' option can have a 'P' variant that clears before prints. I have this feeling that even those who want clearing of the screen, they do not want it always on, when many of their hunks are 7 lines long.