Browse Source

Cache filemode in GitIndex

Apparently this was the intention, but never happened

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
stable-0.9
Robin Rosenberg 14 years ago
parent
commit
3bf96dd04b
  1. 3
      org.eclipse.jgit/src/org/eclipse/jgit/lib/GitIndex.java

3
org.eclipse.jgit/src/org/eclipse/jgit/lib/GitIndex.java

@ -353,7 +353,8 @@ public class GitIndex {
if (filemode != null) if (filemode != null)
return filemode.booleanValue(); return filemode.booleanValue();
RepositoryConfig config = db.getConfig(); RepositoryConfig config = db.getConfig();
return config.getBoolean("core", null, "filemode", true); filemode = Boolean.valueOf(config.getBoolean("core", null, "filemode", true));
return filemode.booleanValue();
} }
/** An index entry */ /** An index entry */

Loading…
Cancel
Save