git-number
git-number copied to clipboard
Reset renamed files do not work
$ 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"
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?
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.