danny0838 / git-store-meta

Simple file metadata storing and applying for git.
MIT License
124 stars 19 forks source link

Update metadata after git pull or merge #12

Closed VadimKulagin closed 6 years ago

VadimKulagin commented 6 years ago

I noticed that now there is no update of metadata after the execution of git pull orgit merge. To make the upgrade work after git pull orgit merge, I had to add a new post-merge hook:

#!/usr/bin/env bash
# It runs .git/hooks/git-store-meta.pl --apply -d after `git merge` or `git pull`

if [ -x ".git/hooks/git-store-meta.pl" ]; then
    # apply meta changes of files and directories
    .git/hooks/git-store-meta.pl --apply -d
fi

It would be very convenient if such a hook appeared immediately after the installation of git-store-meta.pl --install. What do you think?

danny0838 commented 6 years ago

Implemented in 1.2.5.