commit-graph.h: store object directory in 'struct commit_graph'
commit13c249924995d504001eb8083fac106041b32f98
authorTaylor Blau <me@ttaylorr.com>
Mon, 3 Feb 2020 21:18:00 +0000 (3 13:18 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Feb 2020 19:36:51 +0000 (4 11:36 -0800)
tree124fa563e1c9ed159af34bb8f55255d64f05bed7
parent0bd52e27e315a76d6950fa30ce602eef15d90571
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>
builtin/commit-graph.c
commit-graph.c
commit-graph.h