| -rw-r--r-- | ui-commit.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ui-commit.c b/ui-commit.c index b49b2e9..c5ee8e7 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -46,15 +46,8 @@ void print_filepair(struct diff_filepair *pair) html("<tr>"); htmlf("<td class='mode'>"); - if (is_null_sha1(pair->two->sha1)) { - html_filemode(pair->one->mode); - } else { - html_filemode(pair->two->mode); - } - - if (pair->one->mode != pair->two->mode && - !is_null_sha1(pair->one->sha1) && - !is_null_sha1(pair->two->sha1)) { + html_filemode(pair->two->mode); + if (pair->one->mode != pair->two->mode) { html("<span class='modechange'>["); html_filemode(pair->one->mode); html("]</span>"); |