No i don't see any reasons why list_and_choose() shoud give a prompt
without candidates. Will resed patch.
Thank you.
2015-01-22 3:17 GMT+06:00 Junio C Hamano :
> Junio C Hamano writes:
>
>>> sub add_untracked_cmd {
>>> -my @add = list_and_choose({ PROMPT => 'Add untracked' },
>>> -
Junio C Hamano writes:
>> sub add_untracked_cmd {
>> -my @add = list_and_choose({ PROMPT => 'Add untracked' },
>> - list_untracked());
>> -if (@add) {
>> -system(qw(git update-index --add --), @add);
>> -say_n_paths('added', @add);
>>
Alexander Kuleshov writes:
> If user selects 'add untracked' and there are no untracked files,
> "Add untracked>>" opens. But it does not make sense in this case,
> because there are no untracked files. So let's print message and
> exit from "add untracked" mode.
That reasoning makes perfect sen
If user selects 'add untracked' and there are no untracked files,
"Add untracked>>" opens. But it does not make sense in this case, because there
are no untracked files. So let's print message and exit from "add untracked"
mode.
Signed-off-by: Alexander Kuleshov
---
git-add--interactive.perl |
4 matches
Mail list logo