git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] diff-options.txt: document the new "--dirstat" option

From
Gerrit Pape <pape@smarden.org>
Date
Apr 21, 2008, 18:15 UTC
Message-ID
<20080421181552.22887.qmail@f15a5fb7994b18.315fe32.mid.smarden.org>

7df7c01 Adds "--dirstat" for some directory statistics, this commit adds the documentation for the new option.

Noticed by Clint Adams, reported through
 http://bugs.debian.org/476437
Signed-off-by: Gerrit Pape <pape@smarden.org>
---
 Documentation/diff-options.txt |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index 8dc5b00..01e7a57 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -58,6 +58,14 @@ endif::git-format-patch[]
 	number of modified files, as well as number of added and deleted
 	lines.
 
+--dirstat[=limit]::
+	Output only the sub-directories that are impacted by a diff,
+	and to what degree they are impacted.  You can override the
+	default cut-off in percent (3) by "--dirstat=limit".  If you
+	want to enable "cumulative" directory statistics, you can use
+	the "--cumulative" flag, which adds up percentages recursively
+	even when they have been already reported for a sub-directory.
+
 --summary::
 	Output a condensed summary of extended header information
 	such as creations, renames and mode changes.
-- 
1.5.5
Message 1 of 1 in “diff-options.txt: document the new "--dirstat" option”
  1. diff-options.txt: document the new "--dirstat" optionGerrit Pape, Apr 21, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.