add -p: trap Ctrl-D in 'goto' mode
authorThomas Rast <redacted>
Mon, 2 Feb 2009 21:46:29 +0000 (22:46 +0100)
committerJunio C Hamano <redacted>
Wed, 4 Feb 2009 08:52:52 +0000 (00:52 -0800)
commit68c02d7c462e1748578209346f050a587c040139
tree8ba714071a8a75107ba07056ee7fd75b4e3c96d3
parent4404b2e39236e6f9c5bff121fc920d7ec17f7b6d
add -p: trap Ctrl-D in 'goto' mode

If the user hit Ctrl-D (EOF) while the script was in 'go to hunk?'
mode, it threw an undefined variable error.  Explicitly test for EOF
and have it re-enter the goto prompt loop.

Signed-off-by: Thomas Rast <redacted>
Signed-off-by: Junio C Hamano <redacted>
git-add--interactive.perl
git clone https://git.99rst.org/PROJECT