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 ) → 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 ) → 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 in QDataSet


[search for examples] [view on GitHub] [view on old javadoc] [view source]


pull

pull( ) → GitResponse

pull from the upstream repository

Returns:

0 for success.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


push

push( ) → GitResponse

pull from the upstream repository

Returns:

0 for success.

[search for examples] [view on GitHub] [view on old javadoc] [view source]