git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* DWIM .git repository discovery
@ 2012-09-26  1:49 Nguyen Thai Ngoc Duy
  2012-09-26  4:21 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2012-09-26  1:49 UTC (permalink / raw)
  To: Git Mailing List

Hi,

I often find myself attempting to examine another repository,
especially in projects that are closely related but put in different
git repos. It's usually just a diff or log command

git log --patch ../path/to/another/repo/path/to/file.c

cd'ing out is nuisance for one-shot commands, even setting --git-dir
is because i'd need to repeat the path. I think when we detect paths
outside repository, we could try to discover new repository that
contain those paths, the adjust $GIT_DIR internally to the new
repository.

We can't do that now because .git repository and "path outside
repository" check occur in two separate stages, the latter after .git
is discovered and .git can't be moved once discovered. We might be
able to move "path outside repo" check up to discovery phase. But that
could be big change.

Does anybody want such a feature, or it's just my itch? It's probably
not worth doing because few people need it.
-- 
Duy

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

end of thread, other threads:[~2012-09-27 18:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-26  1:49 DWIM .git repository discovery Nguyen Thai Ngoc Duy
2012-09-26  4:21 ` Junio C Hamano
2012-09-26  7:28   ` Michael J Gruber
2012-09-26 11:02   ` Nguyen Thai Ngoc Duy
2012-09-27 12:22     ` Drew Northup
2012-09-27 12:38       ` Nguyen Thai Ngoc Duy
2012-09-27 18:20       ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).