Thread (17 messages) flat view 17 messages, 4 authors, 2016-06-15

Re: [PATCH v2 06/10] setup_git_env: use git_pathdup instead of xmalloc + sprintf

From: Duy Nguyen <hidden>
Date: 2016-06-15 23:01:44

Possibly related (same subject, not in this thread)

On Mon, Jun 23, 2014 at 5:21 PM, Eric Sunshine [off-list ref] wrote:
On Thu, Jun 19, 2014 at 5:28 PM, Jeff King [off-list ref] wrote:
quoted
This is shorter, harder to get wrong, and more clearly
captures the intent.

Signed-off-by: Jeff King <redacted>
---
I wondered if there was a reason to avoid this (because we are in
setup_git_env, which can potentially be called by git_pathdup). But the
git_graft_file initialization below already uses it, and I
double-checked that it is safe once git_dir is set.
This patch will conflict textually with patch 6/28 of Duy's
nd/multiple-work-trees series [1].
I'll just steal the conflicted bit about git_object_dir and put in the
re-roll. It's a better way anyway. If git_index_file change still
results in conflicts, Junio can resolve it easily (I don't touch it in
nd/multiple-work-trees).
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help