Re: [PATCH v3 4/4] add-patch: render hunks through the pager
- From
Rubén Justo <rjusto@gmail.com>
- Date
- Jul 20, 2024, 22:39 UTC
- Message-ID
- <702a80da-e5b2-428a-b91d-8cd1cd897fd7@gmail.com>
- In-Reply-To
- <xmqqy15zzror.fsf@gitster.g>
On Wed, Jul 17, 2024 at 01:31:16PM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> >> - test_write_lines P q | GIT_PAGER="head -n 1" test_terminal git add -p > >> + test_write_lines P q | > >> + ( > >> + GIT_PAGER="head -n 1" && > >> + export GIT_PAGER && > >> + test_terminal git add -p >actual > >> + )
> I wonder if it still works if ">actual" gets removed.
Yes, it works. That redirection is just noise from my previous version.