git-gui: Use git diff --submodule when available
commita9ae14a1c50a9b5bd051be629dba0fb04b6fd67a
authorJens Lehmann <Jens.Lehmann@web.de>
Sat, 23 Jan 2010 22:04:12 +0000 (23 23:04 +0100)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 23 Jan 2010 23:14:15 +0000 (23 15:14 -0800)
tree9ed8ecea84c910def99d4e3839c6366b3b74ffc6
parent87cd09f43e56de5235d09aef3ff5d840419fef49
git-gui: Use git diff --submodule when available

Doing so is much faster and gives the same output.
Here are some numbers:

  $ time git submodule summary
  real 0m0.219s
  user 0m0.050s
  sys 0m0.111s

  $ time git diff --submodule
  real 0m0.012s
  user 0m0.003s
  sys 0m0.009s

Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/diff.tcl