## org.das2.util.filesystem.GitCommand

Wrapper for git commands. There's a Java-based Git command, but for now we will just spawn commands and get output.

## GitCommand( java.io.File pwd )

## commit

commit( java.io.File script, String msg ) → org.das2.util.filesystem.GitCommand.GitResponse

### Parameters

script - a File
msg - a String

### Returns:

org.das2.util.filesystem.GitCommand.GitResponse
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## diff

diff( java.io.File f ) → org.das2.util.filesystem.GitCommand.GitResponse

query for the differences in the file.

### Parameters

f - the file.

### Returns:

the difference formatted as unified diff.

### See Also:

UnifiedDiffUtils.parseUnifiedDiff in QDataSet
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## pull

pull( ) → org.das2.util.filesystem.GitCommand.GitResponse

pull from the upstream repository

### Returns:

0 for success.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## push

push( ) → org.das2.util.filesystem.GitCommand.GitResponse

pull from the upstream repository

### Returns:

0 for success.
[search for examples] [view on GitHub] [view on old javadoc] [view source]