holygeek / git-number

Use numbers for dealing with files in git
ISC License
281 stars 25 forks source link

Reset renamed files do not work #40

Open KES777 opened 6 years ago

KES777 commented 6 years ago
$ 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"
holygeek commented 6 years ago

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?

KES777 commented 6 years ago

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.