Skip to content

pr-361/dscho/git-gui-hooks-path-v4

This is yet another patch from Git for Windows.

Changes since v3:

 * Adjusted the commit message to reflect that this is no longer only about
   the hooks directory.
 * Added a code comment to indicate how the list of keys was determined that
   are used for the gitdir priming.
 * The gitdir cache is now re-primed upon F5.

Changes since v2:

 * The paths returned by git rev-parse --git-path are now cached, and the
   cache is primed with the most common paths.

Changes since v1:

 * Rather than a fine-grained override of gitdir just for the hooks path, we
   now spawn git rev-parse --git-path [...] every time gitdir is called with
   arguments. This makes the code safer, although at the cost of potentially
   many spawned processes.

Johannes Schindelin (1):
  Make gitdir work with worktrees, respect core.hooksPath, etc

 git-gui.sh | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 58 insertions(+), 4 deletions(-)

base-commit: 60c60b627e81bf84e1cb01729d2ae882178f079d

Submitted-As:  Message-ID: pull.361.v4.git.gitgitgadget@gmail.com
In-Reply-To:  Message-ID: pull.361.git.gitgitgadget@gmail.com
In-Reply-To:  Message-ID: pull.361.v2.git.gitgitgadget@gmail.com
In-Reply-To:  Message-ID: pull.361.v3.git.gitgitgadget@gmail.com
Assets 2