Skip to content

Commit c9a04f0

Browse files
committed
Merge branch 'hn/refs-trace-backend'
Developer support. * hn/refs-trace-backend: refs: add GIT_TRACE_REFS debugging mechanism
2 parents b7e65b5 + 4441f42 commit c9a04f0

File tree

5 files changed

+409
-0
lines changed

5 files changed

+409
-0
lines changed

Documentation/git.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,10 @@ of clones and fetches.
722722
time of each Git command.
723723
See `GIT_TRACE` for available trace output options.
724724

725+
`GIT_TRACE_REFS`::
726+
Enables trace messages for operations on the ref database.
727+
See `GIT_TRACE` for available trace output options.
728+
725729
`GIT_TRACE_SETUP`::
726730
Enables trace messages printing the .git, working tree and current
727731
working directory after Git has completed its setup phase.

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,7 @@ LIB_OBJS += rebase.o
955955
LIB_OBJS += ref-filter.o
956956
LIB_OBJS += reflog-walk.o
957957
LIB_OBJS += refs.o
958+
LIB_OBJS += refs/debug.o
958959
LIB_OBJS += refs/files-backend.o
959960
LIB_OBJS += refs/iterator.o
960961
LIB_OBJS += refs/packed-backend.o

refs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,6 +1774,7 @@ struct ref_store *get_main_ref_store(struct repository *r)
17741774
BUG("attempting to get main_ref_store outside of repository");
17751775

17761776
r->refs_private = ref_store_init(r->gitdir, REF_STORE_ALL_CAPS);
1777+
r->refs_private = maybe_debug_wrap_ref_store(r->gitdir, r->refs_private);
17771778
return r->refs_private;
17781779
}
17791780

0 commit comments

Comments
 (0)