mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-17 22:49:41 +00:00
Fix minor WIN32 incompatibility
File mode flags are not all defined on WIN32, but since git is so rigid in how it uses file modes, there is no reason not to hard code a particular value. Also, this is only used in the git_diff_print_compact helper function, so it is really really not important.
This commit is contained in:
parent
3a4375901a
commit
5a2f097fdc
@ -445,7 +445,10 @@ static char pick_suffix(int mode)
|
||||
{
|
||||
if (S_ISDIR(mode))
|
||||
return '/';
|
||||
else if (mode & S_IXUSR)
|
||||
else if (mode & 0100)
|
||||
/* modes in git are not very flexible, so if this bit is set,
|
||||
* we must be dealwith with a 100755 type of file.
|
||||
*/
|
||||
return '*';
|
||||
else
|
||||
return ' ';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user