git diffकमांड इसके लिए वैकल्पिक मान लेता है --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>.
(स्क्रिप्टिंग के लिए आप git diff-treeसीधे उपयोग करना चाह सकते हैं क्योंकि यह "प्लंबिंग" कमांड का अधिक है, हालांकि मुझे संदेह है कि आप किसी भी तरह से ठीक होंगे। ध्यान दें कि आपको --statउपयोग करते समय समान पाठ की आवश्यकता है git diff-tree। git diff"पोर्सिलेन" का उपयोग करने के बीच आवश्यक अंतर। "फ्रंट एंड, और git diff-treeप्लंबिंग कमांड, यह है कि git diffविकल्प के लिए आपकी कॉन्फ़िगर की गई सेटिंग्स को देखता है जैसे diff.renamesकि यह तय करना कि रीनेम डिटेक्शन करना है या नहीं। ठीक है, प्लस फ्रंट इंडक git diffके बराबर होगा git diff-indexयदि आप इंडेक्स के साथ कमिट की तुलना कर रहे हैं। , उदाहरण के लिए। दूसरे शब्दों में, git diff आपके कॉन्फ़िगरेशन को पढ़ता है और स्वचालित रूप से सही प्लंबिंग को आमंत्रित करता है ।