#541114 please call 'etckeeper init' in a post-checkout hook

#541114#5
Date:
2009-08-11 19:21:10 UTC
From:
To:
Currently, according to the README, you have to call 'etckeeper init' by hand
after a 'git checkout' to restore metadata. It would be very handy to do that
using a post-checkout hook. post-merge might also be a good idea.

#541114#10
Date:
2009-09-07 20:21:36 UTC
From:
To:
Maximilian Gass wrote:

For the post-checkout hook, it would need to avoid doing anything if
git-checkout had been used to checkout a file, rather than a branch.

The problem with doing it post-merge is that it would wipe out any
uncommitted metadata changes that are in the tree from before the merge.

#541114#15
Date:
2009-09-08 08:12:59 UTC
From:
To:
Maybe the hooks should just execute .etckeeper to restore permissions instead of
the whole 'etckeeper init' procedure.

#541114#20
Date:
2010-02-03 11:44:49 UTC
From:
To:
According to githooks(5), the post-checkout is passed a flag indicating whether
the checkout was a branch checkout or a file checkout.