trace: omit noisy repository discovery report
Get series with b4
b4 am 20110126004915.GA11230@burratinoVersions newest first
- v1 Latest3 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | setup: do not expose tracing codecache.h git.c trace.c | +50 | 0 replies | |
| 2/3 | trace: omit repository discovery report.gitignore Makefile git.c +2 more | +63 | 3 replies | |
| 3/3 | tests: avoid unnecessary use of GIT_TRACE in repo-setup testst/ test-repo-setup.c | +11 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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