maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [16/50] [abbrv] git commit: minore cleanup
Date Mon, 15 Jul 2013 11:24:27 GMT
minore cleanup


Project: http://git-wip-us.apache.org/repos/asf/maven-scm/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-scm/commit/94f88f0b
Tree: http://git-wip-us.apache.org/repos/asf/maven-scm/tree/94f88f0b
Diff: http://git-wip-us.apache.org/repos/asf/maven-scm/diff/94f88f0b

Branch: refs/heads/master
Commit: 94f88f0beff7846351c006150598d395b9f6eb2c
Parents: 272ac50
Author: imod <domi@fortysix.ch>
Authored: Fri Jun 21 21:20:51 2013 +0200
Committer: imod <domi@fortysix.ch>
Committed: Fri Jun 21 21:20:51 2013 +0200

----------------------------------------------------------------------
 .../provider/git/jgit/command/JGitUtils.java    | 22 ++++++++++++++++++++
 .../jgit/command/branch/JGitBranchCommand.java  |  2 +-
 2 files changed, 23 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-scm/blob/94f88f0b/src/main/java/org/apache/maven/scm/provider/git/jgit/command/JGitUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/maven/scm/provider/git/jgit/command/JGitUtils.java b/src/main/java/org/apache/maven/scm/provider/git/jgit/command/JGitUtils.java
index b454c34..e3f6c11 100644
--- a/src/main/java/org/apache/maven/scm/provider/git/jgit/command/JGitUtils.java
+++ b/src/main/java/org/apache/maven/scm/provider/git/jgit/command/JGitUtils.java
@@ -258,6 +258,28 @@ public class JGitUtils {
 		return changedFiles;
 	}
 
+	/**
+	 * Get a list of commits between two revisions.
+	 * 
+	 * @param repo
+	 *            the repository to work on
+	 * @param sortings
+	 *            sorting
+	 * @param fromRev
+	 *            start revision
+	 * @param toRev
+	 *            if null, falls back to head
+	 * @param fromDate
+	 *            from which date on
+	 * @param toDate
+	 *            until which date
+	 * @param maxLines
+	 *            max number of lines
+	 * @return a list of commits, might be empty, but never <code>null</code>
+	 * @throws IOException
+	 * @throws MissingObjectException
+	 * @throws IncorrectObjectTypeException
+	 */
 	public static List<RevCommit> getRevCommits(Repository repo, RevSort[] sortings, String
fromRev, String toRev, Date fromDate, Date toDate, int maxLines) throws IOException, MissingObjectException,
IncorrectObjectTypeException {
 		List<RevCommit> revs = new ArrayList<RevCommit>();
 		RevWalk walk = new RevWalk(repo);

http://git-wip-us.apache.org/repos/asf/maven-scm/blob/94f88f0b/src/main/java/org/apache/maven/scm/provider/git/jgit/command/branch/JGitBranchCommand.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/maven/scm/provider/git/jgit/command/branch/JGitBranchCommand.java
b/src/main/java/org/apache/maven/scm/provider/git/jgit/command/branch/JGitBranchCommand.java
index 519598c..4601663 100644
--- a/src/main/java/org/apache/maven/scm/provider/git/jgit/command/branch/JGitBranchCommand.java
+++ b/src/main/java/org/apache/maven/scm/provider/git/jgit/command/branch/JGitBranchCommand.java
@@ -56,7 +56,7 @@ public class JGitBranchCommand extends AbstractBranchCommand implements
GitComma
 
 		try {
 			Git git = Git.open(fileSet.getBasedir());
-			Ref branchRef = git.branchCreate().setName(branch).call();
+			git.branchCreate().setName(branch).call();
 
 			if (repo.isPushChanges()) {
 				getLogger().info("push branch [" + branch + "] to remote...");


Mime
View raw message