Skip to content

trace: omit noisy repository discovery report

Jonathan Nieder git 1 version In review

Get series with b4
b4 am 20110126004915.GA11230@burratino

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3setup: do not expose tracing codecache.h git.c trace.c+50 -510 replies
2/3trace: omit repository discovery report.gitignore Makefile git.c +2 more+63 -543 replies
3/3tests: avoid unnecessary use of GIT_TRACE in repo-setup testst/t1510-repo-setup.sh test-repo-setup.c+11 -410 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH/RFC 0/3] trace: omit noisy repository discovery report
Quoted 1 line · Nguyễn Thái Ngọc Duy

+++ b/trace.c

[...]

Review

Quoted 5 lines
(quoted diff) +5 -0
+	trace_printf("setup: git_dir: %s\n", quote_crnl(get_git_dir()));
+	trace_printf("setup: worktree: %s\n", quote_crnl(get_git_work_tree()));
+	trace_printf("setup: cwd: %s\n", quote_crnl(cwd));
+	trace_printf("setup: prefix: %s\n", quote_crnl(prefix));
+}

A few days ago I was tracing something or other and decided that these extra lines are annoying.

Patch 1 moves this code from trace.c to git.c, to contain its impact to a single translation unit (that is, it let me experiment without touching cache.h after that).

Patch 2 removes the repo-setup tracing code, introducing a test-repo-setup helper to take its place in the repo setup tests.

Patch 3 does some cleaning up made possible by patch 2.

Thoughts?
Jonathan Nieder (3):
setup: do not expose tracing code
setup: move debugging code to test-repo-setup helper
setup: stop using GIT_TRACE in tests

 .gitignore            |    1 +
 Makefile              |    1 +
 cache.h               |    1 -
 git.c                 |    4 ----
 t/t1510-repo-setup.sh |   12 +++++-------
 test-repo-setup.c     |   32 ++++++++++++++++++++++++++++++++
 trace.c               |   49 -------------------------------------------------
 7 files changed, 39 insertions(+), 61 deletions(-)
 create mode 100644 test-repo-setup.c
Signature · 1 line
1.7.4.rc3