Re: git diff across submodules

2012-09-20 Thread Junio C Hamano
Jens Lehmann writes: > That's pretty cool! Even though diff options like --stat and --name-only > still won't take into account what happened inside the submodule this > approach makes it possible to see the diff recursively. Wouldn't it make > sense add this script to contrib (after teaching it

Re: git diff across submodules

2012-09-20 Thread Jens Lehmann
Am 20.09.2012 00:31, schrieb Junio C Hamano: > Junio C Hamano writes: > >> I also suspect that you do not have to change "git diff" at all to >> show the patch recursively by using the attribute mechanism (look in >> Documentation/gitattributes.text for a string GIT_EXTERNAL_DIFF). >> It might be

Re: git diff across submodules

2012-09-19 Thread Junio C Hamano
Junio C Hamano writes: > I also suspect that you do not have to change "git diff" at all to > show the patch recursively by using the attribute mechanism (look in > Documentation/gitattributes.text for a string GIT_EXTERNAL_DIFF). > It might be just as simple as doing this: > > echo >.gitat

Re: git diff across submodules

2012-09-18 Thread Junio C Hamano
Jens Lehmann writes: > Am 18.09.2012 05:12, schrieb Kenny Simpson: >> Is there any nice way to get a diff and/or diffstat of both a project and >> its submodules between two revisions of the main project? >> >> Something like 'git diff --stat tag_a tag_b' but also including the diffstat >> o

Re: git diff across submodules

2012-09-18 Thread Jens Lehmann
Am 18.09.2012 05:12, schrieb Kenny Simpson: > Is there any nice way to get a diff and/or diffstat of both a project and > its submodules between two revisions of the main project? > > Something like 'git diff --stat tag_a tag_b' but also including the diffstat > on the submodule from the revis

git diff across submodules

2012-09-17 Thread Kenny Simpson
Hello, Is there any nice way to get a diff and/or diffstat of both a project and its submodules between two revisions of the main project? Something like 'git diff --stat tag_a tag_b' but also including the diffstat on the submodule from the revision tied to in tag_a to the revision tied to ta