Class GitUtils
java.lang.Object
com.tremolosecurity.git.GitUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyFiles
(List<GitFile> files) void
checkOut()
void
cleanup()
void
commitAndPush
(String wfMessage)
-
Constructor Details
-
GitUtils
-
-
Method Details
-
checkOut
public void checkOut() throws FileNotFoundException, org.eclipse.jgit.api.errors.InvalidRemoteException, org.eclipse.jgit.api.errors.TransportException, org.eclipse.jgit.api.errors.GitAPIException- Throws:
FileNotFoundException
org.eclipse.jgit.api.errors.InvalidRemoteException
org.eclipse.jgit.api.errors.TransportException
org.eclipse.jgit.api.errors.GitAPIException
-
cleanup
public void cleanup() -
applyFiles
public void applyFiles(List<GitFile> files) throws IOException, org.eclipse.jgit.api.errors.NoFilepatternException, org.eclipse.jgit.api.errors.GitAPIException, com.github.fge.jsonpatch.JsonPatchException, org.json.simple.parser.ParseException - Throws:
IOException
org.eclipse.jgit.api.errors.NoFilepatternException
org.eclipse.jgit.api.errors.GitAPIException
com.github.fge.jsonpatch.JsonPatchException
org.json.simple.parser.ParseException
-
commitAndPush
public void commitAndPush(String wfMessage) throws org.eclipse.jgit.api.errors.NoFilepatternException, org.eclipse.jgit.api.errors.GitAPIException - Throws:
org.eclipse.jgit.api.errors.NoFilepatternException
org.eclipse.jgit.api.errors.GitAPIException
-