diff options
author | Taylor Blau <me@ttaylorr.com> | 2020-02-03 13:18:00 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-02-04 11:36:51 -0800 |
commit | 13c249924995d504001eb8083fac106041b32f98 (patch) | |
tree | 124fa563e1c9ed159af34bb8f55255d64f05bed7 /hashmap.c | |
parent | commit-graph.h: store an odb in 'struct write_commit_graph_context' (diff) | |
download | tgif-13c249924995d504001eb8083fac106041b32f98.tar.xz |
commit-graph.h: store object directory in 'struct commit_graph'
In a previous patch, the 'char *object_dir' in 'struct commit_graph' was
replaced with a 'struct object_directory'. This patch applies the same
treatment to 'struct commit_graph', which is another intermediate step
towards getting rid of all path normalization in 'commit-graph.c'.
Instead of taking a 'char *object_dir', functions that construct a
'struct commit_graph' now take a 'struct object_directory *'. Any code
that needs an object directory path use '->path' instead.
This ensures that all calls to functions that perform path normalization
are given arguments which do not themselves require normalization. This
prepares those functions to drop their normalization entirely, which
will occur in the subsequent patch.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'hashmap.c')
0 files changed, 0 insertions, 0 deletions