diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-09-18 17:58:01 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-18 17:58:01 -0700 |
commit | 711f5b3ce208071e711c40938eb5a676efa6f82b (patch) | |
tree | 6dca6f100b4e706b28ecbbec949bbc3aa7ae8e84 | |
parent | Merge branch 'ea/blame-use-oideq' (diff) | |
parent | refs: move REF_LOG_ONLY to refs-internal.h (diff) | |
download | tgif-711f5b3ce208071e711c40938eb5a676efa6f82b.tar.xz |
Merge branch 'hn/refs-ref-log-only-bit'
A bit of API reshuffling to make sure stuff common to all backends
are not defined only in files backend.
* hn/refs-ref-log-only-bit:
refs: move REF_LOG_ONLY to refs-internal.h
-rw-r--r-- | refs/files-backend.c | 7 | ||||
-rw-r--r-- | refs/refs-internal.h | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c index dd712e47f4..04e85e7002 100644 --- a/refs/files-backend.c +++ b/refs/files-backend.c @@ -39,13 +39,6 @@ #define REF_NEEDS_COMMIT (1 << 6) /* - * Used as a flag in ref_update::flags when we want to log a ref - * update but not actually perform it. This is used when a symbolic - * ref update is split up. - */ -#define REF_LOG_ONLY (1 << 7) - -/* * Used as a flag in ref_update::flags when the ref_update was via an * update to HEAD. */ diff --git a/refs/refs-internal.h b/refs/refs-internal.h index 527b0a6e2e..87a1201bf9 100644 --- a/refs/refs-internal.h +++ b/refs/refs-internal.h @@ -32,6 +32,13 @@ struct ref_transaction; #define REF_HAVE_OLD (1 << 3) /* + * Used as a flag in ref_update::flags when we want to log a ref + * update but not actually perform it. This is used when a symbolic + * ref update is split up. + */ +#define REF_LOG_ONLY (1 << 7) + +/* * Return the length of time to retry acquiring a loose reference lock * before giving up, in milliseconds: */ |