summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-04-13 15:51:33 -0700
committerJunio C Hamano <gitster@pobox.com>2022-04-13 15:51:33 -0700
commitc6da34a610e58f7e58042b5ed24a19bd2c18e928 (patch)
treefa92224f86cee761f510325d8e7e0d2f55d6fd88 /refs.h
parent1ac7422e39b0043250b026f9988d0da24cb2cb58 (diff)
downloadgit-c6da34a610e58f7e58042b5ed24a19bd2c18e928.tar.gz
Revert "Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'"
This reverts commit 991b4d47f0accd3955d05927d5ce434e03ffbdb6, reversing changes made to bcd020f88e1e22f38422ac3f73ab06b34ec4bef1.
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/refs.h b/refs.h
index 23479c7ee0..47cb9edbaa 100644
--- a/refs.h
+++ b/refs.h
@@ -229,7 +229,7 @@ char *repo_default_branch_name(struct repository *r, int quiet);
* struct strbuf err = STRBUF_INIT;
* int ret = 0;
*
- * transaction = ref_store_transaction_begin(refs, 0, &err);
+ * transaction = ref_store_transaction_begin(refs, &err);
* if (!transaction ||
* ref_transaction_update(...) ||
* ref_transaction_create(...) ||
@@ -567,16 +567,10 @@ enum action_on_err {
};
/*
- * Skip executing the reference-transaction hook.
- */
-#define REF_TRANSACTION_SKIP_HOOK (1 << 0)
-
-/*
* Begin a reference transaction. The reference transaction must
* be freed by calling ref_transaction_free().
*/
struct ref_transaction *ref_store_transaction_begin(struct ref_store *refs,
- unsigned int flags,
struct strbuf *err);
struct ref_transaction *ref_transaction_begin(struct strbuf *err);