| Modifier and Type | Field and Description |
|---|---|
| public static final String | KEY_DIFF_TOOL
Key for diff tool git configuration section |
| public static final String | KEY_MERGE_TOOL
Key for merge tool git configuration section |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Set | Returns: the sorted tool names set: first element is default tool name if valid, then user defined tool names and then pre defined tool namesthe default tool name defaultName, Set<String> the user defined tool names userDefinedNames, Set<String> the pre defined tool names preDefinedNames)Create sorted tool set |
| public static Optional | Returns: attribute value for the given tool key if settarget repository to traverse into repository, final String path to the node in repository to parse git attributes for path, final String config key name for the tool toolKey)Provides |
| public static boolean | Returns: true if tool available and false otherwisethe file system abstraction fs, File the .git directory gitDir, File the working directory directory, String the tool path path)Whether tool is available |
| public static String | Returns: the prepared (with replaced variables) command stringthe input "command" string command, FileElement the local file (ours) localFile, FileElement the remote file (theirs) remoteFile, FileElement the merged file (worktree) mergedFile, FileElement the base file (can be null) baseFile)Prepare command for execution. |
| public static Map | Returns: the environment map with variables and values (file paths)the .git directory gitDir, FileElement the local file (ours) localFile, FileElement the remote file (theirs) remoteFile, FileElement the merged file (worktree) mergedFile, FileElement the base file (can be null) baseFile)Prepare environment needed for execution. |
| public static String |
| KEY_DIFF_TOOL | back to summary |
|---|---|
| public static final String KEY_DIFF_TOOL Key for diff tool git configuration section | |
| KEY_MERGE_TOOL | back to summary |
|---|---|
| public static final String KEY_MERGE_TOOL Key for merge tool git configuration section | |
| ExternalToolUtils | back to summary |
|---|---|
| public ExternalToolUtils() | |
| createSortedToolSet | back to summary |
|---|---|
| public static Set Create sorted tool set | |
| getExternalToolFromAttributes | back to summary |
|---|---|
| public static Optional Provides
| |
| isToolAvailable | back to summary |
|---|---|
| public static boolean isToolAvailable(FS fs, File gitDir, File directory, String path) Whether tool is available | |
| prepareCommand | back to summary |
|---|---|
| public static String prepareCommand(String command, FileElement localFile, FileElement remoteFile, FileElement mergedFile, FileElement baseFile) throws IOException Prepare command for execution.
| |
| prepareEnvironment | back to summary |
|---|---|
| public static Map Prepare environment needed for execution.
| |
| quotePath | back to summary |
|---|---|
| public static String quotePath(String path) Quote path | |