Re: [PATCH 2/6] commit-graph.h: store object directory in 'struct commit_graph'
- From
Jeff King <peff@peff.net>
- Date
- Feb 3, 2020, 08:36 UTC
- Message-ID
- <20200203083616.GA2164@coredump.intra.peff.net>
- In-Reply-To
- <20200203043646.GB23625@syl.local>
On Sun, Feb 02, 2020 at 08:36:46PM -0800, Taylor Blau wrote:
Show 5 quoted lines
> That all said, I am not sure that I follow the explanation that we need > to have 'write_commit_graph_ctx' store the normalized object_dir, since > we can use 'odb->path' for this instead. I double checked, and we > already do the same loose normalization in > 'sha1-file.c:link_alt_odb_entry()', where we remove trailing slashes.
I was assuming that the normalization in write_commit_graph_ctx was necessary (and I think there are some tests around this), but I admit I didn't actually try it. If it's not failing tests, I'm OK with comparing the non-normalized paths as an intermediate step, since we end up comparing pointers after the final patches.
-Peff