01VCS / git-meta

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

Individual git repository for the metadata, inside .git/meta (optional?) #2

Open danimesq opened 2 years ago

danimesq commented 2 years ago

Reference: https://gist.github.com/andris9/1978266#gistcomment-3930475

https://stackoverflow.com/questions/45416049/how-to-make-a-git-pre-commit-hook-that-checks-the-commit-message (after commit and .gitmeta is done, get commit msg) https://www.w3docs.com/snippets/git/how-to-retrieve-hash-for-commits-in-git.html (get commit hash, too. Then commit in .git/meta)

danimesq commented 2 years ago

It would also enable to commit metadata changes when there is a git pull.