diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-19 02:25:29 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-19 02:25:29 -0700 |
commit | 85e6326cc3e7c272566c60a39741f84391830d49 (patch) | |
tree | b6d14d13fc12da9804c6fff3728c9437e4622fd3 /diff.c | |
parent | 4262c1b0c38613a8c5ae729bd4d3f18f0df3ec44 (diff) | |
parent | 23edecbc9a5566ac5aa8fb251fbcf8bb83694837 (diff) | |
download | git-85e6326cc3e7c272566c60a39741f84391830d49.tar.gz |
Merge branch 'fix'
* fix:
Document git-clone --reference
Fix filename scaling for binary files
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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++) { |