git-number icon indicating copy to clipboard operation
git-number copied to clipboard

Reset renamed files do not work

Open KES777 opened this issue 7 years ago • 2 comments

$ alias gr
alias gr='gn -c git reset HEAD'
$ alias gn
alias gn='git-number'
$ gr 1
git reset HEAD "lib/MaitreD/Controllers/Country.pm -> etc/Country.pm"

KES777 avatar Apr 03 '18 10:04 KES777

git-number doesn't work with renames. This is mentioned in the README, item 3 under the "Caveats" section. It might be possible to change it so that it can support renames, by outputting the renamed name, but is it the right choice all the time? Is there any need that we'd wan't to get the pre-renamed name instead?

holygeek avatar Apr 04 '18 14:04 holygeek

I think It could print as it does currently, but when expanding then take right (current) name etc/Country.pm

***OFFTOPIC. I have a lecture how to use git-number. Maybe would be useful to mention somewhere.

KES777 avatar Apr 04 '18 17:04 KES777