Re: DWIM .git repository discovery

2012-09-27 Thread Junio C Hamano
Drew Northup writes: >>> I think that this is a road to insanity; anybody who thinks along >>> this line is already on the other side of the line, I would have to >>> say ;-). >> >> We could go slowly and stop before being diagnosed insane. I mean the >> trick can be opted in for a command subset

Re: DWIM .git repository discovery

2012-09-27 Thread Nguyen Thai Ngoc Duy
On Thu, Sep 27, 2012 at 7:22 PM, Drew Northup wrote: >>> I personally do not think it is _too_ bad to internally do >>> >>> (cd ../path/to/another/repo/path/to && >>> git log --patch file.c) >>> >> >> As long as the .git discovery and path rewriting can be done >> automatically, t

Re: DWIM .git repository discovery

2012-09-27 Thread Drew Northup
On Wed, Sep 26, 2012 at 7:02 AM, Nguyen Thai Ngoc Duy wrote: > On Wed, Sep 26, 2012 at 11:21 AM, Junio C Hamano wrote: >> Nguyen Thai Ngoc Duy writes: >> >>> I often find myself attempting to examine another repository, >>> especially in projects that are closely related but put in different >>>

Re: DWIM .git repository discovery

2012-09-26 Thread Nguyen Thai Ngoc Duy
On Wed, Sep 26, 2012 at 11:21 AM, Junio C Hamano wrote: > Nguyen Thai Ngoc Duy writes: > >> 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 --p

Re: DWIM .git repository discovery

2012-09-26 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 26.09.2012 06:21: > Nguyen Thai Ngoc Duy writes: > >> 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 --patc

Re: DWIM .git repository discovery

2012-09-25 Thread Junio C Hamano
Nguyen Thai Ngoc Duy writes: > 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 I personally do not

DWIM .git repository discovery

2012-09-25 Thread Nguyen Thai Ngoc Duy
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 sett