Re: [PATCH v3 2/3] add-patch: Allow interfile navigation when selecting hunks
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 6, 2026, 18:35 UTC
- Message-ID
- <xmqq4intg1o7.fsf@gitster.g>
- In-Reply-To
- <24692afa3f0a67d3f3eba776cc745287c5d71e94.1770390576.git.abrahamadekunle50@gmail.com>
Abraham Samuel Adekunle <abrahamadekunle50@gmail.com> writes:
Show 9 quoted lines
> - } else if (s->answer.buf[0] == 'K') {
> + } else if (s->s.no_auto_advance && s->answer.buf[0] == '>') {
> + if (permitted & ALLOW_GOTO_NEXT_FILE) {
> + ret = NEXT_FILE;
> +...
> + continue;
> + }
> + }
> + else if (s->answer.buf[0] == 'K') {This funny-looking diff is a sign that the coding guideline was followed in the preimage but not in the postimage, by splitting the "} else if (condition) {" into two lines for 'K'.