[PATCH] Fix git-diff-files for symlinks.

Again I am not sure why this was missed during the last round,
but git-diff-files mishandles symlinks on the filesystem.  This
patch fixes it.

Signed-off-by: Junio C Hamano <junkio@cox.net>

And I'm not sure why did I miss this patch before. Sorry.

Signed-off-by: Petr Baudis <pasky@ucw.cz>
This commit is contained in:
Junio C Hamano 2005-05-12 16:51:08 -07:00 коммит произвёл Petr Baudis
Родитель f77b100ada
Коммит 95649d6cf9
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -126,7 +126,8 @@ int main(int argc, char **argv)
continue;
oldmode = ntohl(ce->ce_mode);
mode = S_IFREG | ce_permissions(st.st_mode);
mode = (S_ISLNK(st.st_mode) ? S_IFLNK :
S_IFREG | ce_permissions(st.st_mode));
show_modified(oldmode, mode, ce->sha1, null_sha1,
ce->name);