refs: add REFS_STORE_ALL_CAPS

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Apr 24, 2017 at 17:01 UTC 0d8a814d8ac6b18834def72912781ce6fe45fa89
2 files changed +5 -5
refs.c
+1 -5
@@ -1526,11 +1526,7 @@ struct ref_store *get_main_ref_store(void)
1526 if (main_ref_store)
1527 return main_ref_store;
1528
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);
1530 return main_ref_store;
1531 }
1532
refs/refs-internal.h
+4
@@ -467,6 +467,10 @@ struct ref_store;
467 #define REF_STORE_WRITE (1 << 1) /* can perform update operations */
468 #define REF_STORE_ODB (1 << 2) /* has access to object database */
469 #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)
474
475 /*
476 * Initialize the ref_store for the specified gitdir. These functions