author | Ciaran McCreesh <ciaran.mccreesh@googlemail.com> | |
Mon, 14 Jul 2008 18:29:37 +0000 (19:29 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 15 Jul 2008 14:37:00 +0000 (07:37 -0700) | ||
commit | 1e5aaa6db38964fd6ca679864c0a40f7af01cf1a | |
tree | 0e3b98144ffc6d7df2dac75b0f094e2bf4ab7943 | tree | snapshot |
parent | a271b2a9ceb2f65095cf789d2d7c7e44ca5d95f4 | commit | diff |
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>
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 | diff | blob | history | |
git-add--interactive.perl | diff | blob | history |