El git diffcomando toma valores opcionales para --stat:
--stat[=<width>[,<name-width>[,<count>]]]
Generate a diffstat. You can override the default output width for
80-column terminal by --stat=<width>. The width of the filename
part can be controlled by giving another width to it separated by a
comma. By giving a third parameter <count>, you can limit the
output to the first <count> lines, followed by ... if there are
more.
These parameters can also be set individually with
--stat-width=<width>, --stat-name-width=<name-width> and
--stat-count=<count>.
(Para las secuencias de comandos, es posible que desee utilizarlo git diff-treedirectamente, ya que es más un comando de "plomería", aunque sospecho que estará bien de cualquier manera. Tenga en cuenta que necesita el mismo texto adicional --statcuando lo usa git diff-tree. La diferencia esencial entre usar la git diff"porcelana "front end, y el git diff-treecomando de fontanería, es el que git diffbusca las opciones configuradas para diff.renamesdecidir si se debe realizar la detección de cambio de nombre. Bueno, eso, además de que el front end git diffhará el equivalente git diff-indexa comparar una confirmación con el índice , por ejemplo. En otras palabras, git diff lee su configuración e invoca la tubería correcta automáticamente ).