git/t/helper
Patrick Steinhardt b92266b79c config: make dependency on repo in `read_early_config()` explicit
The `read_early_config()` function can be used to read configuration
where a repository has not yet been set up. As such, it is optional
whether or not `the_repository` has already been initialized. If it was
initialized we use its commondir and gitdir. If not, the function will
try to detect the Git directories by itself and, if found, also parse
their config files.

This means that we implicitly rely on `the_repository`. Make this
dependency explicit by passing a `struct repository`. This allows us to
again drop the `USE_THE_REPOSITORY_VARIABLE` define in "config.c".

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-09-12 10:15:40 -07:00
..
.gitignore
test-advise.c global: prepare for hiding away repo-less config functions 2024-08-13 10:01:05 -07:00
test-bitmap.c Merge branch 'ps/use-the-repository' 2024-07-02 09:59:00 -07:00
test-bloom.c Merge branch 'tb/path-filter-fix' 2024-07-08 14:53:10 -07:00
test-bundle-uri.c remote: drop checks for zero-url case 2024-06-14 09:34:39 -07:00
test-cache-tree.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-chmtime.c
test-config.c config: make dependency on repo in `read_early_config()` explicit 2024-09-12 10:15:40 -07:00
test-crontab.c
test-csprng.c
test-date.c date: make DATE_MODE thread-safe 2024-04-05 15:21:14 -07:00
test-delete-gpgsig.c t1016-compatObjectFormat: add tests to verify the conversion between objects 2023-10-02 14:57:40 -07:00
test-delta.c treewide: remove unnecessary includes for wrapper.h 2023-07-05 11:41:59 -07:00
test-dir-iterator.c
test-drop-caches.c
test-dump-cache-tree.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-dump-fsmonitor.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-dump-split-index.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-dump-untracked-cache.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-env-helper.c parse: separate out parsing functions from config.h 2023-09-29 15:14:57 -07:00
test-example-tap.c Merge branch 'jk/mark-unused-parameters' 2024-08-26 11:32:23 -07:00
test-fake-ssh.c
test-find-pack.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-fsmonitor-client.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-genrandom.c
test-genzeros.c
test-getcwd.c
test-hash-speed.c hash-ll: merge with "hash.h" 2024-06-14 10:26:33 -07:00
test-hash.c
test-hashmap.c t/helper: mark more unused argv/argc arguments 2024-08-17 09:46:11 -07:00
test-hexdump.c
test-json-writer.c set errno=0 before strtoX calls 2024-08-05 10:59:20 -07:00
test-lazy-init-name-hash.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-match-trees.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-mergesort.c test-mergesort: mark unused parameters in trivial callback 2024-08-17 09:46:23 -07:00
test-mktemp.c
test-oid-array.c t/helper: fix segfault in "oid-array" command without repository 2024-06-14 10:26:34 -07:00
test-online-cpus.c
test-pack-mtimes.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-parse-options.c parse-options: fix leaks for users of OPT_FILENAME 2024-06-11 13:15:04 -07:00
test-parse-pathspec-file.c
test-partial-clone.c t/helper: use correct object hash in partial-clone helper 2024-06-14 10:26:34 -07:00
test-path-utils.c Merge branch 'fixes/2.45.1/2.41' into fixes/2.45.1/2.42 2024-05-24 16:57:43 -07:00
test-pcre2-config.c
test-pkt-line.c Merge branch 'jx/sideband-chomp-newline-fix' into maint-2.43 2024-02-08 16:22:11 -08:00
test-proc-receive.c t/helper: remove dependency on `the_repository` in "proc-receive" 2024-06-14 10:26:35 -07:00
test-progress.c
test-reach.c commit-reach: add get_branch_base_for_tip 2024-08-14 10:10:05 -07:00
test-read-cache.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-read-graph.c Merge branch 'tb/path-filter-fix' 2024-07-08 14:53:10 -07:00
test-read-midx.c midx: support reading incremental MIDX chains 2024-08-06 12:01:38 -07:00
test-ref-store.c refs: add referent to each_ref_fn 2024-08-09 08:47:34 -07:00
test-reftable.c Merge branch 'cp/unit-test-reftable-readwrite' 2024-08-23 09:02:35 -07:00
test-regex.c global: improve const correctness when assigning string constants 2024-06-07 10:30:48 -07:00
test-repository.c t/test-repository: fix leaking repository 2024-08-01 08:47:37 -07:00
test-revision-walking.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-rot13-filter.c global: improve const correctness when assigning string constants 2024-06-07 10:30:48 -07:00
test-run-command.c test-tool run-command testsuite: support unit tests 2024-05-06 14:06:34 -07:00
test-scrap-cache-tree.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-serve-v2.c
test-sha1.c hash-ll: merge with "hash.h" 2024-06-14 10:26:33 -07:00
test-sha1.sh
test-sha256.c hash-ll: merge with "hash.h" 2024-06-14 10:26:33 -07:00
test-sigchain.c
test-simple-ipc.c treewide: remove unnecessary includes in source files 2023-12-26 12:04:31 -08:00
test-string-list.c Merge branch 'en/header-split-cache-h-part-2' 2023-05-09 16:45:46 -07:00
test-submodule-config.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-submodule-nested-repo-config.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-submodule.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-subprocess.c
test-tool-utils.h
test-tool.c t: migrate t0110-urlmatch-normalization to the new framework 2024-08-20 10:08:28 -07:00
test-tool.h t: migrate t0110-urlmatch-normalization to the new framework 2024-08-20 10:08:28 -07:00
test-trace2.c set errno=0 before strtoX calls 2024-08-05 10:59:20 -07:00
test-truncate.c t: add a test helper to truncate files 2023-10-13 13:33:35 -07:00
test-userdiff.c global: prepare for hiding away repo-less config functions 2024-08-13 10:01:05 -07:00
test-wildmatch.c git-compat-util.h: remove unneccessary include of wildmatch.h 2023-06-21 13:39:54 -07:00
test-windows-named-pipe.c
test-write-cache.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
test-xml-encode.c