Class ModifyCommandBuilder

java.lang.Object
sonia.scm.repository.api.ModifyCommandBuilder

public class ModifyCommandBuilder extends Object
Use this ModifyCommandBuilder to make file changes to the head of a branch. You can You can collect multiple changes before they are executed with a call to execute().

Example:

 commandBuilder
     .setBranch("feature/branch")
     .setCommitMessage("make some changes")
     .setAuthor(new Person())
     .createFile("file/to/create").withData(inputStream)
     .deleteFile("old/file/to/delete")
     .execute();