Re: [PATCH 4/4] add-patch: render hunks through the pager
- From
Rubén Justo <rjusto@gmail.com>
- Date
- Jul 13, 2024, 03:23 UTC
- Message-ID
- <91941519-04c0-4306-bc5b-4fa1283d2de6@gmail.com>
- In-Reply-To
- <ba8ad59d-d125-41d9-a482-ee8eda187762@gmail.com>
On 13/7/24 1:24, Rubén Justo wrote:
> Maybe a test like this would be clearer?
test_expect_success TTY 'P does not break if pager ends unexpectedly' '
test_when_finished "rm -f huge_file; git reset" &&
printf "%2500000s" Y >huge_file &&
git add -N huge_file &&
test_write_lines P q | GIT_PAGER="head -c 1" test_terminal git add -p
'