author | Junio C Hamano <junkio@cox.net> | |
Wed, 1 Jun 2005 18:38:07 +0000 (11:38 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Wed, 1 Jun 2005 20:24:03 +0000 (13:24 -0700) | ||
commit | 67574c403f1e27660bbd0348b81b31adc9889b20 | |
tree | 5511c5cab33437edbee94e6fbe5a62d3d5827ae5 | tree | snapshot |
parent | 81bb573ed882523e345f0923b88db2aac8f4b93c | commit | diff |
[PATCH] diff: mode bits fixes
The core GIT repository has trees that record regular file mode
in 0664 instead of normalized 0644 pattern. Comparing such a
tree with another tree that records the same file in 0644
pattern without content changes with git-diff-tree causes it to
feed otherwise unmodified pairs to the diff_change() routine,
which triggers a sanity check routine and barfs. This patch
fixes the problem, along with the fix to another caller that
uses unnormalized mode bits to call diff_change() routine in a
similar way.
Without this patch, you will see "fatal error" from diff-tree
when you run git-deltafy-script on the core GIT repository
itself.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
The core GIT repository has trees that record regular file mode
in 0664 instead of normalized 0644 pattern. Comparing such a
tree with another tree that records the same file in 0644
pattern without content changes with git-diff-tree causes it to
feed otherwise unmodified pairs to the diff_change() routine,
which triggers a sanity check routine and barfs. This patch
fixes the problem, along with the fix to another caller that
uses unnormalized mode bits to call diff_change() routine in a
similar way.
Without this patch, you will see "fatal error" from diff-tree
when you run git-deltafy-script on the core GIT repository
itself.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff-files.c | diff | blob | history | |
diff-tree.c | diff | blob | history | |
diff.c | diff | blob | history | |
diff.h | diff | blob | history | |
diffcore.h | diff | blob | history |