Git development
 help / color / mirror / Atom feed
* Re: log and diff family: honor config even from subdirectories
@ 2006-07-29  1:17 Linus Torvalds
  2006-07-29  1:54 ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Linus Torvalds @ 2006-07-29  1:17 UTC (permalink / raw)
  To: Junio C Hamano, Git Mailing List


Junio,
 I think your patch is fine as a band-aid, but I wonder if we shouldn't 
just move the "setup_git_directory()" call out of init_revisions(), and 
pass it as an argument to init_revision(). Some of the callers have 
already done setup_git_directory() earlier for their own reasons anyway.

And from a quick look it looks like you missed the same bug happening in 
cmd_format_patch(), which calls git_config(git_format_config) before 
having done the setup.

I'd actually _like_ to do the setup unconditionally inside the git wrapper 
(early - to make sure that we don't have this bug), but some things (at 
least "init-db", "clone" and "ls-remote") are obviously not supposed to do 
it, since they work outside of a git directory. So either we need to do it 
in each builtin command separately, or we'd need to add a flag in the 
command descriptor array.

Any clever ideas?

		Linus

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-07-29 16:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-29  1:17 log and diff family: honor config even from subdirectories Linus Torvalds
2006-07-29  1:54 ` Junio C Hamano
2006-07-29  4:21   ` Call setup_git_directory() early Linus Torvalds
2006-07-29  4:41     ` An alternative: call " Junio C Hamano
2006-07-29  5:06     ` Call " Junio C Hamano
2006-07-29  5:44       ` Linus Torvalds
2006-07-29  9:12         ` Junio C Hamano
2006-07-29 16:52           ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox