Teach FileMode how to return the proper instance of itself
commit1bf217443f96cfe9c01207d5cee11c1b6d47c11c
authorShawn O. Pearce <spearce@spearce.org>
Mon, 10 Mar 2008 01:55:40 +0000 (9 21:55 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 7 Apr 2008 03:40:41 +0000 (6 23:40 -0400)
tree94902dc8cf986e989ffb424727ad77b2b73eea0f
parent3d86c53ca2f17e34f042dc7ff468f0e142a45bfb
Teach FileMode how to return the proper instance of itself

While we are it we fix the mask tests we use for bit equality,
as they were incorrect and did not match what a POSIX system
would consider for S_ISDIR, S_ISREG, S_ISLNK.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/FileMode.java