threads / patch / 15318

patchImprove documentation for --dirstat diff option

Subject: [PATCH] Improve documentation for --dirstat diff option

## tl;dr

2 messages between Sep 1, 2008 and Sep 1, 2008. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Heikki Orsila· Sep 1, 2008, 10:13 UTC · lore
Signed-off-by: Heikki Orsila <heikki.orsila@iki.fi>
---
My earlier version of the patch already gave an example of use. This 
version changes the word "damage" to "impact" (Jakub Narebski's 
suggestion).
 Documentation/diff-options.txt |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
Show changes to Documentation/diff-options.txt +5 −6
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index 1759386..150debb 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -59,12 +59,11 @@ endif::git-format-patch[]
 	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.
+	Output the distribution of relative impact (number of lines added or
+	removed) for each sub-directory. Directories with impact below
+	a cut-off percent (3% by default) are not shown. The cut-off percent
+	can be set with "--dirstat=limit". Child directory impact is not
+	counted for the parent directory, unless "--cumulative" is used.
 
 --summary::
 	Output a condensed summary of extended header information
-- 
1.6.0.1
Abhijit Menon-Sen· Sep 1, 2008, 10:18 UTC · re: Heikki Orsila · lore

Re: [PATCH] Improve documentation for --dirstat diff option

At 2008-09-01 13:13:34 +0300, heikki.orsila@iki.fi wrote:
>
> My earlier version of the patch already gave an example of use. This 
> version changes the word "damage" to "impact" (Jakub Narebski's 
> suggestion).

Sorry, I didn't see the suggestion, but "impacted" sounds like you're discussing a tooth. "Affected" or even "changed" would be much better.

-- ams

← back to recent threads