diff options
author | Ciaran McCreesh <ciaran.mccreesh@googlemail.com> | 2008-07-14 19:29:37 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-15 07:37:00 -0700 |
commit | 1e5aaa6db38964fd6ca679864c0a40f7af01cf1a (patch) | |
tree | 0e3b98144ffc6d7df2dac75b0f094e2bf4ab7943 /Documentation | |
parent | a271b2a9ceb2f65095cf789d2d7c7e44ca5d95f4 (diff) | |
download | git-1e5aaa6db38964fd6ca679864c0a40f7af01cf1a.tar.gz git-1e5aaa6db38964fd6ca679864c0a40f7af01cf1a.tar.xz |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-add.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt index 46dd56c12..3558905a9 100644 --- a/Documentation/git-add.txt +++ b/Documentation/git-add.txt @@ -187,8 +187,9 @@ update:: "Update>>". When the prompt ends with double '>>', you can make more than one selection, concatenated with whitespace or comma. Also you can say ranges. E.g. "2-5 7,9" to choose - 2,3,4,5,7,9 from the list. You can say '*' to choose - everything. + 2,3,4,5,7,9 from the list. If the second number in a range is + omitted, all remaining patches are taken. E.g. "7-" to choose + 7,8,9 from the list. You can say '*' to choose everything. + What you chose are then highlighted with '*', like this: |