Package org.eclipse.jgit.treewalk
Class WorkingTreeOptions
- java.lang.Object
-
- org.eclipse.jgit.treewalk.WorkingTreeOptions
-
public class WorkingTreeOptions extends java.lang.Object
Options used by theWorkingTreeIterator
.
-
-
Field Summary
Fields Modifier and Type Field Description private CoreConfig.AutoCRLF
autoCRLF
private CoreConfig.CheckStat
checkStat
private boolean
dirNoGitLinks
private CoreConfig.EOL
eol
private boolean
fileMode
private CoreConfig.HideDotFiles
hideDotFiles
static Config.SectionParser<WorkingTreeOptions>
KEY
Key forConfig.get(SectionParser)
.private CoreConfig.SymLinks
symlinks
-
Constructor Summary
Constructors Modifier Constructor Description private
WorkingTreeOptions(Config rc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoreConfig.AutoCRLF
getAutoCRLF()
Get automatic CRLF conversion configuration.CoreConfig.CheckStat
getCheckStat()
Get how stat data is compared.CoreConfig.EOL
getEOL()
Get how text line endings should be normalized.CoreConfig.HideDotFiles
getHideDotFiles()
Get how we create '.'-files (on Windows)CoreConfig.SymLinks
getSymLinks()
Get how we handle symbolic linksboolean
isDirNoGitLinks()
Whether or not we treat nested repos as directories.boolean
isFileMode()
Whether the execute bit on working files should be trusted.
-
-
-
Field Detail
-
KEY
public static final Config.SectionParser<WorkingTreeOptions> KEY
Key forConfig.get(SectionParser)
.
-
fileMode
private final boolean fileMode
-
autoCRLF
private final CoreConfig.AutoCRLF autoCRLF
-
eol
private final CoreConfig.EOL eol
-
checkStat
private final CoreConfig.CheckStat checkStat
-
symlinks
private final CoreConfig.SymLinks symlinks
-
hideDotFiles
private final CoreConfig.HideDotFiles hideDotFiles
-
dirNoGitLinks
private final boolean dirNoGitLinks
-
-
Constructor Detail
-
WorkingTreeOptions
private WorkingTreeOptions(Config rc)
-
-
Method Detail
-
isFileMode
public boolean isFileMode()
Whether the execute bit on working files should be trusted.- Returns:
true
if the execute bit on working files should be trusted.
-
getAutoCRLF
public CoreConfig.AutoCRLF getAutoCRLF()
Get automatic CRLF conversion configuration.- Returns:
- how automatic CRLF conversion has been configured.
-
getEOL
public CoreConfig.EOL getEOL()
Get how text line endings should be normalized.- Returns:
- how text line endings should be normalized.
- Since:
- 4.3
-
getCheckStat
public CoreConfig.CheckStat getCheckStat()
Get how stat data is compared.- Returns:
- how stat data is compared.
- Since:
- 3.0
-
getSymLinks
public CoreConfig.SymLinks getSymLinks()
Get how we handle symbolic links- Returns:
- how we handle symbolic links
- Since:
- 3.3
-
getHideDotFiles
public CoreConfig.HideDotFiles getHideDotFiles()
Get how we create '.'-files (on Windows)- Returns:
- how we create '.'-files (on Windows)
- Since:
- 3.5
-
isDirNoGitLinks
public boolean isDirNoGitLinks()
Whether or not we treat nested repos as directories.- Returns:
- whether or not we treat nested repos as directories. If true, folders containing .git entries will not be treated as gitlinks.
- Since:
- 4.3
-
-