Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Fix +x-related show-diff false positives
author
Petr Baudis
<pasky@ucw.cz>
Sun, 17 Apr 2005 17:04:48 +0000
(10:04 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sun, 17 Apr 2005 17:04:48 +0000
(10:04 -0700)
This fixes show-diff listing all +x files as differring.
Signed-off-by: Petr Baudis <pasky@ucw.cz>
[ That's what I get for working on a G5 - my testing was all
big-endian in the first place. -- Linus ]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
read-cache.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
c747fc6
)
diff --git
a/read-cache.c
b/read-cache.c
index 03d49e1026282d51c93c0a1b6ea1bdd16f41fc49..042b0c2107330c35731a4d42c9907e0b34ad5257 100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-304,7
+304,7
@@
int cache_match_stat(struct cache_entry *ce, struct stat *st)
ce->ce_gid != htonl(st->st_gid))
changed |= OWNER_CHANGED;
/* We consider only the owner x bit to be relevant for "mode changes" */
- if (0100 & (ntoh
s
(ce->ce_mode) ^ st->st_mode))
+ if (0100 & (ntoh
l
(ce->ce_mode) ^ st->st_mode))
changed |= MODE_CHANGED;
if (ce->ce_dev != htonl(st->st_dev) ||
ce->ce_ino != htonl(st->st_ino))