Skip to contentSkip to conversation

Improve documentation for --dirstat diff option

PATCH In review Heikki Orsila 4 participants 4 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Improve documentation for --dirstat diff option

---
 Documentation/diff-options.txt |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
Documentation/diff-options.txt +5 -6
index 1759386..1fda86c 100644
@@ -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 damage (number of lines added or
+	removed) for each sub-directory. Directories with damage below
+	a cut-off percent (3% by default) are not shown. The cut-off percent
+	can be set with "--dirstat=limit". Damage for a child directory is not
+	counted for the parent directory, unless "--cumulative" is used.
 
 --summary::
 	Output a condensed summary of extended header information
Signature · 1 line
1.6.0.1
#1 lore raw
Quoted 4 lines · Heikki Orsila

 --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

Quoted 8 lines

-       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 damage (number of lines added or +       removed) for each sub-directory. Directories with damage below +       a cut-off percent (3% by default) are not shown. The cut-off percent +       can be set with "--dirstat=limit". Damage for a child directory is not +       counted for the parent directory, unless "--cumulative" is used.

I rather prefer "impact" to "damage". And it should probably be "child directory _shown_".

Signature · 3 lines
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
#2 lore raw
Quoted 7 lines · Jakub Narebski

Heikki Orsila wrote:
...

Quoted 2 lines

+       can be set with "--dirstat=limit". Damage for a child directory is not +       counted for the parent directory, unless "--cumulative" is used.

I rather prefer "impact" to "damage". And it should probably be "child directory _shown_".

The word "damage" did raise my eyebrow as well, even though I knew it came from the wording of the variable to compute it, and coming from somebody like Linus it somewhat sounds funny ;-) I was going to suggest using a more neutral "change" in the end user documentation.

#3 lore raw
Quoted 3 lines · Junio C Hamano

The word "damage" did raise my eyebrow as well, even though I knew it came from the wording of the variable to compute it, and coming from somebody like Linus it somewhat sounds funny ;-)

I rather liked the term "damage", but changed it :) "Impact" also has the semantic meaning of high-level consequences, like "impact" of a scientific publication.

Signature · 3 lines
Heikki Orsila
[email protected]
http://www.iki.fi/shd