Don't show new and old filemode for added/removed files
It gives us no extra info whatsoever to show "----------" for either new or old mode, it's just noise (especially since we now show the "old" filemode for deleted files) Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Este commit está contenido en:
padre
6cb326c83b
commit
fb6e5869dc
@ -46,8 +46,15 @@ void print_filepair(struct diff_filepair *pair)
|
|||||||
|
|
||||||
html("<tr>");
|
html("<tr>");
|
||||||
htmlf("<td class='mode'>");
|
htmlf("<td class='mode'>");
|
||||||
|
if (is_null_sha1(pair->two->sha1)) {
|
||||||
|
html_filemode(pair->one->mode);
|
||||||
|
} else {
|
||||||
html_filemode(pair->two->mode);
|
html_filemode(pair->two->mode);
|
||||||
if (pair->one->mode != pair->two->mode) {
|
}
|
||||||
|
|
||||||
|
if (pair->one->mode != pair->two->mode &&
|
||||||
|
!is_null_sha1(pair->one->sha1) &&
|
||||||
|
!is_null_sha1(pair->two->sha1)) {
|
||||||
html("<span class='modechange'>[");
|
html("<span class='modechange'>[");
|
||||||
html_filemode(pair->one->mode);
|
html_filemode(pair->one->mode);
|
||||||
html("]</span>");
|
html("]</span>");
|
||||||
|
Cargando…
Referencia en una nueva incidencia
Block a user