summaryrefslogtreecommitdiff
path: root/Documentation/diff-format.txt
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2007-06-24 22:23:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-06-25 08:51:21 (GMT)
commit125b7630521918b75c136bd95309054d3f6d9da5 (patch)
tree4469809e02d0025473f16bcc81e3b50f284219fb /Documentation/diff-format.txt
parentcfc0aef1ffb8a9fe2792667597a05bbf3b6b1258 (diff)
downloadgit-125b7630521918b75c136bd95309054d3f6d9da5.zip
git-125b7630521918b75c136bd95309054d3f6d9da5.tar.gz
git-125b7630521918b75c136bd95309054d3f6d9da5.tar.bz2
diff: round down similarity index
Rounding down the printed (dis)similarity index allows us to use "100%" as a special value that indicates complete rewrites and fully equal file contents, respectively. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/diff-format.txt')
-rw-r--r--Documentation/diff-format.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/diff-format.txt b/Documentation/diff-format.txt
index 18d49d2..0015032 100644
--- a/Documentation/diff-format.txt
+++ b/Documentation/diff-format.txt
@@ -126,6 +126,13 @@ the file that rename/copy produces, respectively.
If there is need for such substitution then the whole
pathname is put in double quotes.
+The similarity index is the percentage of unchanged lines, and
+the dissimilarity index is the percentage of changed lines. It
+is a rounded down integer, followed by a percent sign. The
+similarity index value of 100% is thus reserved for two equal
+files, while 100% dissimilarity means that no line from the old
+file made it into the new one.
+
combined diff format
--------------------