diff-lib: use ce_mode_from_stat() rather than messing with modes manually
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Apr 2007 04:13:29 +0000 (21:13 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 10 Apr 2007 05:30:04 +0000 (22:30 -0700)
commit844c11ae259bd33b971b9ca389b3f9619427e9a8
tree16ba8464639ca93a273b3fc94936fdbec2580c73
parent8ff21b1a3307c7059ea1e00b5117a50a2bc5fec8
diff-lib: use ce_mode_from_stat() rather than messing with modes manually

The diff helpers used to do the magic mode canonicalization and all the
other special mode handling by hand ("trust executable bit" and "has
symlink support" handling).

That's bogus. Use "ce_mode_from_stat()" that does this all for us.

This is also going to be required when we add support for links to other
git repositories.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff-lib.c