diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-12-14 16:05:34 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-12-14 16:05:34 -0700 |
commit | f17dca8b3b674ff62b8c5c343d65a480b064423a (patch) | |
tree | b9bede8c6677bce243357d6d06ac28d1669257a9 /lib | |
parent | ab4665f8b2e5361726e52b0bb042540ab13b7c48 (diff) | |
download | dotfiles-f17dca8b3b674ff62b8c5c343d65a480b064423a.tar.gz |
comment
Diffstat (limited to 'lib')
-rw-r--r-- | lib/perl5/Local/MrRepo/Repo/Git/Annex.pm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/perl5/Local/MrRepo/Repo/Git/Annex.pm b/lib/perl5/Local/MrRepo/Repo/Git/Annex.pm index f613eabf..7f9d3247 100644 --- a/lib/perl5/Local/MrRepo/Repo/Git/Annex.pm +++ b/lib/perl5/Local/MrRepo/Repo/Git/Annex.pm @@ -151,8 +151,16 @@ sub review_unused { if ($opts{interactive}) { my $response; while (1) { - $response - = lc(prompt("Drop this unused file? (y/n/o)")); + # would be good if user could say 'b' to go back + # to the previous entry. would probably have to + # implement this by replacing the foreach loop + # with a while loop with a manually maintained + # array index into @unused_files. + # + # would also be good not to require the user to + # hit RET, possibly by using Term::ReadKey (see + # example code in its POD). + $response = lc(prompt("Drop this unused file? (y/n/o)")); if ($response eq 'y') { push @to_drop, $unused_file->{number}; last; |