| Modifier and Type | Field and Description |
|---|---|
| private static String | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public FS | newInstance()
Overrides org. Create a new instance of the same type of FS. |
| public String | relativize(String
The path against which base, String other should be
relativized.The path that will be made relative to other)base.Overrides org. See
|
| public File | resolve(File
directory relative to which the path name is. dir, String path name to translate. pn)Overrides org. Resolve this file to its actual path name that the JRE can use. |
| public ProcessResult | runHookIfPresent(Repository
The repository for which a hook should be run. repository, String The name of the hook to be executed. hookName, String[] Arguments to pass to this hook. Cannot be args, OutputStream null,
but can be an empty array.A print stream on which to redirect the hook's stdout. Can be
outRedirect, OutputStream null, in which case the hook's standard output
will be lost.A print stream on which to redirect the hook's stderr. Can be
errRedirect, String null, in which case the hook's standard error
will be lost.A string to pass on to the standard input of the hook. May be
stdinArgs)null.Overrides org. Checks whether the given hook is defined for the given repository, then runs it with the given arguments. |
| public ProcessBuilder | runInShell(String
command to execute. This string should originate from the
end-user, and thus is platform specific. cmd, String[] arguments to pass to command. These should be protected from
shell evaluation. args)Overrides org. Initialize a ProcessBuilder to run a command using the system shell. |
| pack-priv String | shellQuote(String
the String to quote cmd)Overrides org. Quote a string (such as a file system path obtained from a Java
|
| protected File | userHomeImpl()
Overrides org. Determine the user's home directory (location where preferences are). |
| cygpath | back to summary |
|---|---|
| private static String cygpath | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| FS_Win32_Cygwin | back to summary |
|---|---|
| public FS_Win32_Cygwin() Constructor | |
| FS_Win32_Cygwin | back to summary |
|---|---|
| protected FS_Win32_Cygwin(FS src) Constructor
| |
| isCygwin | back to summary |
|---|---|
| public static boolean isCygwin() Whether cygwin is found
| |
| newInstance | back to summary |
|---|---|
| public FS newInstance() Overrides org. Doc from org. Create a new instance of the same type of FS. | |
| relativize | back to summary |
|---|---|
| public String relativize(String base, String other) Overrides org. Doc from org. See
| |
| resolve | back to summary |
|---|---|
| public File resolve(File dir, String pn) Overrides org. Doc from org. Resolve this file to its actual path name that the JRE can use. This method can be relatively expensive. Computing a translation may require forking an external process per path name translated. Callers should try to minimize the number of translations necessary by caching the results. Not all platforms and JREs require path name translation. Currently only Cygwin on Win32 require translation for Cygwin based paths. | |
| runHookIfPresent | back to summary |
|---|---|
| public ProcessResult runHookIfPresent(Repository repository, String hookName, String[] args, OutputStream outRedirect, OutputStream errRedirect, String stdinArgs) throws JGitInternalException Overrides org. Doc from org. Checks whether the given hook is defined for the given repository, then runs it with the given arguments.
| |
| runInShell | back to summary |
|---|---|
| public ProcessBuilder runInShell(String cmd, String[] args) Overrides org. Doc from org. Initialize a ProcessBuilder to run a command using the system shell.
| |
| shellQuote | back to summary |
|---|---|
| pack-priv String shellQuote(String cmd) Overrides org. Doc from org. Quote a string (such as a file system path obtained from a Java
This default implementation returns the string unchanged. | |
| userHomeImpl | back to summary |
|---|---|
| protected File userHomeImpl() Overrides org. Doc from org. Determine the user's home directory (location where preferences are). | |