diff options
Diffstat (limited to 'ui-commit.c')
| -rw-r--r-- | ui-commit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui-commit.c b/ui-commit.c index 25721ca..ed25824 100644 --- a/ui-commit.c +++ b/ui-commit.c | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #include "cgit.h" | 9 | #include "cgit.h" |
| 10 | #include "html.h" | ||
| 10 | 11 | ||
| 11 | static int files, slots; | 12 | static int files, slots; |
| 12 | static int total_adds, total_rems, max_changes; | 13 | static int total_adds, total_rems, max_changes; |
| @@ -62,16 +63,16 @@ void print_fileinfo(struct fileinfo *info) | |||
| 62 | html("<tr>"); | 63 | html("<tr>"); |
| 63 | htmlf("<td class='mode'>"); | 64 | htmlf("<td class='mode'>"); |
| 64 | if (is_null_sha1(info->new_sha1)) { | 65 | if (is_null_sha1(info->new_sha1)) { |
| 65 | html_filemode(info->old_mode); | 66 | cgit_print_filemode(info->old_mode); |
| 66 | } else { | 67 | } else { |
| 67 | html_filemode(info->new_mode); | 68 | cgit_print_filemode(info->new_mode); |
| 68 | } | 69 | } |
| 69 | 70 | ||
| 70 | if (info->old_mode != info->new_mode && | 71 | if (info->old_mode != info->new_mode && |
| 71 | !is_null_sha1(info->old_sha1) && | 72 | !is_null_sha1(info->old_sha1) && |
| 72 | !is_null_sha1(info->new_sha1)) { | 73 | !is_null_sha1(info->new_sha1)) { |
| 73 | html("<span class='modechange'>["); | 74 | html("<span class='modechange'>["); |
| 74 | html_filemode(info->old_mode); | 75 | cgit_print_filemode(info->old_mode); |
| 75 | html("]</span>"); | 76 | html("]</span>"); |
| 76 | } | 77 | } |
| 77 | htmlf("</td><td class='%s'>", class); | 78 | htmlf("</td><td class='%s'>", class); |
