Skip to content

Commit 0d8a814

Browse files
pcloudsgitster
authored andcommitted
refs: add REFS_STORE_ALL_CAPS
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0c064d9 commit 0d8a814

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

refs.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,11 +1526,7 @@ struct ref_store *get_main_ref_store(void)
15261526
if (main_ref_store)
15271527
return main_ref_store;
15281528

1529-
main_ref_store = ref_store_init(get_git_dir(),
1530-
(REF_STORE_READ |
1531-
REF_STORE_WRITE |
1532-
REF_STORE_ODB |
1533-
REF_STORE_MAIN));
1529+
main_ref_store = ref_store_init(get_git_dir(), REF_STORE_ALL_CAPS);
15341530
return main_ref_store;
15351531
}
15361532

refs/refs-internal.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ struct ref_store;
467467
#define REF_STORE_WRITE (1 << 1) /* can perform update operations */
468468
#define REF_STORE_ODB (1 << 2) /* has access to object database */
469469
#define REF_STORE_MAIN (1 << 3)
470+
#define REF_STORE_ALL_CAPS (REF_STORE_READ | \
471+
REF_STORE_WRITE | \
472+
REF_STORE_ODB | \
473+
REF_STORE_MAIN)
470474

471475
/*
472476
* Initialize the ref_store for the specified gitdir. These functions

0 commit comments

Comments
 (0)