01VCS / git-meta

Wanna git preserve your file dates? git-meta stores all files' metadata into .gitmeta! On every commit!
12 stars 3 forks source link

Support "git pull" post hook alongside "git commit" pre hook #6

Open vvambo opened 2 years ago

vvambo commented 2 years ago

I haven't looked deeply into git pre-hooks, but I imagine the ppl using this could provide instructions (or even upgrade the init.sh with an option) to make the git-meta commands run whenever an commit is done (before) and after a pull is done as to provide a seamless experience.

danimesq commented 1 year ago

@vvambo it already runs at a pre-commit hook (pls remember that it is installed manually per repo, by placing git-meta.sh and init.sh then running init.sh). Storing timestamps after a pull/merging is an amazing idea I haven't though about before

frferrara commented 10 months ago

As an addition, the post-checkout hook could also be adapted (such that the metadata is also updated when a branch is checked out).