Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'lt/pack-object-memuse'
[gitweb.git]
/
diff-no-index.c
diff --git
a/diff-no-index.c
b/diff-no-index.c
index 7273a7a0b648cc8cbd6dce2043a6e544b87d28b6..42c1dd8ad3b0633767bf577975a895722f882565 100644
(file)
--- a/
diff-no-index.c
+++ b/
diff-no-index.c
@@
-38,6
+38,10
@@
static int get_mode(const char *path, int *mode)
if (!path || !strcmp(path, "/dev/null"))
*mode = 0;
+#ifdef _WIN32
+ else if (!strcasecmp(path, "nul"))
+ *mode = 0;
+#endif
else if (!strcmp(path, "-"))
*mode = create_ce_mode(0666);
else if (lstat(path, &st))