Closed aavmurphy closed 3 years ago
You're not supposed to use the full path. Just say git restore-mtime
, like for any other git command.
I didn't realise that. Maybe just add git restore-mtime
as a doco example to show people coming to this for the first time.
I wasted a day looking at various stackoverflow npm log
inspired scripts (discovering spaces and brackets in file names en route). And a lot of other people will have done the same.
Yours is perfect solution. A real shame its not accepted as part of git.
I didn't realise that. Maybe just add
git restore-mtime
as a doco example to show people coming to this for the first time.
Good idea. I've marked this with the (newly-created) documentation
label, and will leave the issue open until the docs are updated.
Yours is perfect solution. A real shame its not accepted as part of git.
Wow. This is perhaps the best compliment this project can get. Thank you!
... and to think this all started with this and this (the bash script is still the most popular solution, heh)
Documentation
With the ubuntu (and others?) packages, add scripts are (e.g.)
/usr/lib/git-core/git-restore-mtime
cd [git repo] /usr/lib/git-core/git-restore-mtime
Thanks for git-restore-mtime, 1000x faster than a git log script!