Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java
index 597ce99b15..6c44d955f2 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java
@@ -591,6 +591,20 @@ public class Git {
}
/**
+ * Returns a command object to execute a {@code apply} command
+ *
+ * @see <a
+ * href="http://www.kernel.org/pub/software/scm/git/docs/git-apply.html"
+ * >Git documentation about apply</a>
+ *
+ * @return a {@link ApplyCommand} used to collect all optional parameters
+ * and to finally execute the {@code apply} command
+ */
+ public ApplyCommand apply() {
+ return new ApplyCommand(repo);
+ }
+
+ /**
* @return the git repository this class is interacting with
*/
public Repository getRepository() {

Back to the top