Thread (9 messages) flat view 9 messages, 3 authors, 2016-06-15

Re: [PATCH 41/68] init: use strbufs to store paths

From: Jeff King <hidden>
Date: 2016-06-15 23:06:45

Possibly related (same subject, not in this thread)

On Sat, Oct 03, 2015 at 11:12:13PM +0200, Torsten Bögershausen wrote:
quoted
Hmph, Peff's quick-fix passed the original "CoNfIg" in &buf directly
to probe_utf8_pathname_composition() without changing its signature.
True, ( I was thinking that the test did only work on case insensitive FS).
We can skip that change.

Beside that, I later realized, that a better signature could be:
+void probe_utf8_pathname_composition(const char *path, size_t len)

I can send a proper patch the next days.
That is the original signature, before my sprintf series. I do not mind
leaving that as-is, and simply cleaning up probe_utf8_pathname_composition
by using a strbuf internally there. Though I have to wonder if it even
needs us to pass _anything_ at that point. It could just call
git_path_buf("config%s", auml_nfd) itself. The whole reason to pass
anything was to let it reuse the buffer the caller had.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help