提交 95649d6c 编写于 作者: J Junio C Hamano 提交者: Petr Baudis

[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: NJunio C Hamano <junkio@cox.net>

And I'm not sure why did I miss this patch before. Sorry.
Signed-off-by: NPetr Baudis <pasky@ucw.cz>
上级 f77b100a
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册