You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update behavior for postCommand.strategy=post-index-change (#748)
This feature was introduced in #736 but had a few pain points that were
discovered when testing the full replacement of the existing
post-index-change and post-command hooks in our internal environment:
1. When using `core.hooksPath` to point to a directory within the
worktree, the sentinel files were being written into the worktree. Write
to `$GITDIR/info/` instead.
2. The existing internal post-index-change hook only signaled that work
needed to be done if actually the _worktree_ changed. Make the sentinel
file logic more restrictive to only write in these cases.
Tests are added to confirm both of these behavior changes.
To reflect the changed behavior, the name `post-index-change` was renamed
to `worktree-change`.
0 commit comments