From: Jens Lehmann Date: Wed, 28 Oct 2009 11:40:45 +0000 (+0100) Subject: gitk: Use the --submodule option for displaying diffs when available X-Git-Tag: v1.6.6-rc2~2^2~9 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/5c838d23aa02476cfe91b0eea047b6d5857da770?ds=inline;hp=5c838d23aa02476cfe91b0eea047b6d5857da770 gitk: Use the --submodule option for displaying diffs when available When displaying diffs in a submodule, this makes gitk display the headlines of the commits being diffed, instead of just showing not-quite-helpful SHA-1 pairs, if the underlying git installation supports this. That makes it much easier to evaluate the changes, as it eliminates the need to start a gitk inside the submodule and use the superprojects hashes there to find out what the commits are about. Since the --submodule option of git diff is new in git version 1.6.6, this only uses the --submodule option when a git version of 1.6.6 or higher is detected. Signed-off-by: Jens Lehmann Signed-off-by: Paul Mackerras ---