summaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-12-15 00:09:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-12-28 18:06:33 (GMT)
commitff509c585e847c5fc40c40d35e7d745dd81363bd (patch)
treeeaceb9aa686c53e8642a6abb98cfa5c2a348ca59 /strbuf.h
parentb6b24fc57bb2132955756771f9588a3cfb050350 (diff)
downloadgit-ff509c585e847c5fc40c40d35e7d745dd81363bd.zip
git-ff509c585e847c5fc40c40d35e7d745dd81363bd.tar.gz
git-ff509c585e847c5fc40c40d35e7d745dd81363bd.tar.bz2
t/helper/test-repository: celebrate independence from the_repository
dade47c06c (commit-graph: add repo arg to graph readers, 2018-07-11) brought more independence from the_repository to the commit graph, however it was not completely independent of the_repository, as the previous patches show. To ensure we're not accessing the_repository by accident, we'd ideally assign NULL to the_repository to trigger a segfault on access. We currently have a temporary hack in cache.h, which relies on the_hash_algo (which is a short form of the_repository->hash_algo) to be set, so we cannot do that. The next best thing is to set all fields of the_repository to 0, so any accidental access is more likely to be found. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.h')
0 files changed, 0 insertions, 0 deletions