Re: [PATCH v2] all: new command used for multi-repo operations

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH v2] all: new command used for multi-repo operations

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:55:52

Junio C Hamano [off-list ref] writes:
But I still do not think this loop is correct.  In a repository that
has a working tree, you would learn that directory $D has $D/.git in
it, feed $D to handle_repo(), and then descend into $D/.git/objects/,
$D/.git/refs, and other random directories to see if you can find
other repositories....
Ahh, no, you don't.

I still think calling is_git_directory() on $D + "/.git" would be a
better implementation, though.

Re: [PATCH v2] all: new command used for multi-repo operations

From: Lars Hjemli <hidden>
Date: 2016-06-15 22:55:52

On Wed, Jan 23, 2013 at 6:04 PM, Junio C Hamano [off-list ref] wrote:
Junio C Hamano [off-list ref] writes:
quoted
But I still do not think this loop is correct.  In a repository that
has a working tree, you would learn that directory $D has $D/.git in
it, feed $D to handle_repo(), and then descend into $D/.git/objects/,
$D/.git/refs, and other random directories to see if you can find
other repositories....
Ahh, no, you don't.

I still think calling is_git_directory() on $D + "/.git" would be a
better implementation, though.
Except for the .gitfile case, which is_git_directory() doesn't seem to
handle. I guess I can invoke read_gitfile() when i see that .git is a
file.

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