summaryrefslogtreecommitdiff
path: root/builtin/rebase.c
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2020-01-16 08:33:07 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-01-16 14:10:23 -0800
commit849e43cc18a8aef639b92c5df9b66af3eb983b2a (patch)
treee76e50354029b286d519c4e7a527a257b70c84aa /builtin/rebase.c
parentbuilt-in add -i: do not try to `patch`/`diff` an empty list of files (diff)
downloadtgif-849e43cc18a8aef639b92c5df9b66af3eb983b2a.tar.xz
built-in add -i: accept open-ended ranges again
The interactive `add` command allows selecting multiple files for some of its sub-commands, via unique prefixes, indices or index ranges. When re-implementing `git add -i` in C, we even added a code comment talking about ranges with a missing end index, such as `2-`, but the code did not actually accept those, as pointed out in https://github.com/git-for-windows/git/issues/2466#issuecomment-574142760. Let's fix this, and add a test case to verify that this stays fixed forever. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rebase.c')
0 files changed, 0 insertions, 0 deletions