summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm
diff options
context:
space:
mode:
authorRobin Stocker <robin@nibor.org>2010-11-06 13:41:06 +0100
committerRobin Stocker <robin@nibor.org>2010-11-06 13:41:06 +0100
commit2fb0f5cfc067cb20f178cf4db7395b394b48783b (patch)
tree0e1faeee3fb76feac0bedce9ea68fdccbfd5182a /org.eclipse.jgit.pgm
parentd1e8e97316f8a1349e69a773b1fb0837d9892bbd (diff)
downloadjgit-2fb0f5cfc067cb20f178cf4db7395b394b48783b.tar.gz
jgit-2fb0f5cfc067cb20f178cf4db7395b394b48783b.zip
Make Repository.shortenRefName static
The method has no reason to be non-static. Change-Id: I1c09e074395d49cee0e6e53679b499d1f0c351ea
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Branch.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Branch.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Branch.java
index b1c8254626..5fb4a963e1 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Branch.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Branch.java
@@ -150,7 +150,7 @@ class Branch extends TextBuiltin {
startBranch = startRef.getName();
else
startBranch = startAt.name();
- startBranch = db.shortenRefName(startBranch);
+ startBranch = Repository.shortenRefName(startBranch);
String newRefName = newHead;
if (!newRefName.startsWith(Constants.R_HEADS))
newRefName = Constants.R_HEADS + newRefName;