summaryrefslogtreecommitdiff
path: root/builtin-read-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-03-10 23:08:08 -0800
committerJunio C Hamano <gitster@pobox.com>2012-03-11 14:08:19 -0700
commitdcf082d24e2c869341658aa0c0489710a1b0d463 (patch)
tree57cda259210912b4e6128b1e73e18c1e97deeb8f /builtin-read-tree.c
parent04861982e553289c923b2f9ef829ef33206c9bc4 (diff)
downloadgit-jc/run-hook-env-1.tar.gz
run_hook(): enhance the interface to pass arbitrary environmentjc/run-hook-env-1
Originally "run_hook()" that used to live in builtin/commit.c had a perfectly appropriate API and name for a private function to spawn a hook from "git commit" command. The only necessary tweak in the context was to optionally specify which file to use as the index file. But then we stupidly moved this private API to run-command.c without making the interface suitable for general consumption, and there is no way to tweak environment variables other than GIT_INDEX_FILE when running a hook. Correct this mistake by adding run_hook_e() that takes an array of environment variables. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-read-tree.c')
0 files changed, 0 insertions, 0 deletions