MestreLion / git-tools

Assorted git tools, including git-restore-mtime
GNU General Public License v3.0
295 stars 74 forks source link

doco : add example of use, e.g. git restore-mtime #42

Closed aavmurphy closed 3 years ago

aavmurphy commented 4 years ago

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!

kilobyte commented 4 years ago

You're not supposed to use the full path. Just say git restore-mtime, like for any other git command.

aavmurphy commented 4 years ago

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.

MestreLion commented 3 years ago

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)