Code

Make git-add -i accept ranges like 7-
authorCiaran McCreesh <ciaran.mccreesh@googlemail.com>
Mon, 14 Jul 2008 18:29:37 +0000 (19:29 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 2 Aug 2008 06:26:40 +0000 (23:26 -0700)
commit69c231f4732e1373f7872dde6dc50ffe62673865
tree1efa2c6775b46ef0fcd5c85a5f9bc84fd4874069
parent1ceb95c8041cad1c25c73fd08e8c0c7ee28cf704
Make git-add -i accept ranges like 7-

git-add -i ranges expect number-number. But for the supremely lazy, typing in
that second number when selecting "from patch 7 to the end" is wasted effort.
So treat an empty second number in a range as "until the last item".

Signed-off-by: Ciaran McCreesh <ciaran.mccreesh@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-add.txt
git-add--interactive.perl