]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit.h
hooks: fix an obscure TOCTOU "did we just run a hook?" race
[thirdparty/git.git] / commit.h
index 38cc5426615fdf1efd5b407e7507991db45100c2..3b174135bcff3e720139e687aadacf733e414bb6 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -369,7 +369,8 @@ int compare_commits_by_commit_date(const void *a_, const void *b_, void *unused)
 int compare_commits_by_gen_then_commit_date(const void *a_, const void *b_, void *unused);
 
 LAST_ARG_MUST_BE_NULL
-int run_commit_hook(int editor_is_used, const char *index_file, const char *name, ...);
+int run_commit_hook(int editor_is_used, const char *index_file,
+                   int *invoked_hook, const char *name, ...);
 
 /* Sign a commit or tag buffer, storing the result in a header. */
 int sign_with_header(struct strbuf *buf, const char *keyid);