Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-19 13:25:29 +0400
committerJunio C Hamano <junkio@cox.net>2006-04-19 13:25:29 +0400
commit85e6326cc3e7c272566c60a39741f84391830d49 (patch)
treeb6d14d13fc12da9804c6fff3728c9437e4622fd3 /diff.c
parent4262c1b0c38613a8c5ae729bd4d3f18f0df3ec44 (diff)
parent23edecbc9a5566ac5aa8fb251fbcf8bb83694837 (diff)
Merge branch 'fix'
* fix: Document git-clone --reference Fix filename scaling for binary files
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/diff.c b/diff.c
index d75e0178ff..0a832c3585 100644
--- a/diff.c
+++ b/diff.c
@@ -250,13 +250,14 @@ static void show_stats(struct diffstat_t* data)
for (i = 0; i < data->nr; i++) {
struct diffstat_file *file = data->files[i];
+ len = strlen(file->name);
+ if (max_len < len)
+ max_len = len;
+
if (file->is_binary || file->is_unmerged)
continue;
if (max_change < file->added + file->deleted)
max_change = file->added + file->deleted;
- len = strlen(file->name);
- if (max_len < len)
- max_len = len;
}
for (i = 0; i < data->nr; i++) {