git-annex/Upgrade
Joey Hess ca7de61454
git post-checkout and post-merge hooks
* init, upgrade: Install git post-checkout and post-merge hooks that run
  git annex smudge --update.
* precommit: Run git annex smudge --update, because the post-merge
  hook is not run when there is a merge conflict. So the work tree will
  be updated when a commit is made to resolve the merge conflict.
* precommit: Run git annex smudge --update, because the post-merge
  hook is not run when there is a merge conflict. So the work tree will
  be updated when a commit is made to resolve the merge conflict.
* Note that git has no hooks run after git stash or git cherry-pick,
  so the user will have to manually run git annex smudge --update
  after such commands.

Nothing currently installs the hooks into v6 repos that already exist.
Something will need to be done about that, either move this behavior to v7,
or document that the user will need to manually fix up their v6 repos.

This commit was sponsored by Eric Drechsel on Patreon.
2018-10-25 15:59:51 -04:00
..
V0.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
V1.hs squelch a couple of warnings about moveAnnex return code 2017-02-28 12:49:17 -04:00
V2.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
V3.hs update my email address and homepage url 2015-01-21 12:50:09 -04:00
V4.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
V5.hs git post-checkout and post-merge hooks 2018-10-25 15:59:51 -04:00