summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm.test/tst
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2021-11-24 23:21:25 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2021-11-24 23:23:03 +0100
commitc20dd8206e2c6619c4851a202fa0217255d070dd (patch)
tree391d0d41fe2040068b0783697ef4eaa0bf3f6598 /org.eclipse.jgit.pgm.test/tst
parent75c716f5d7cdb0f4978c42a4dcae6c6ee4dcb42d (diff)
downloadjgit-c20dd8206e2c6619c4851a202fa0217255d070dd.tar.gz
jgit-c20dd8206e2c6619c4851a202fa0217255d070dd.zip
RevListTest: fix warning that method parameter hides field 'git'
Change-Id: I12bd44e8bf75010ada2dff60f519fea61c7459de
Diffstat (limited to 'org.eclipse.jgit.pgm.test/tst')
-rw-r--r--org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/RevListTest.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/RevListTest.java b/org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/RevListTest.java
index 06fddc29d9..7c6cf4290e 100644
--- a/org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/RevListTest.java
+++ b/org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/RevListTest.java
@@ -55,21 +55,21 @@ public class RevListTest extends CLIRepositoryTestCase {
assertEquals(expect, result);
}
- private List<RevCommit> createCommitsForParentsFlag(Git git)
+ private List<RevCommit> createCommitsForParentsFlag(Git repo)
throws Exception {
List<RevCommit> commits = new ArrayList<>();
writeTrashFile("Test1.txt", "Hello world");
- git.add().addFilepattern("Test1.txt").call();
- commits.add(git.commit().setMessage("commit#0").call());
+ repo.add().addFilepattern("Test1.txt").call();
+ commits.add(repo.commit().setMessage("commit#0").call());
writeTrashFile("Test.txt", "Hello world!");
- git.add().addFilepattern("Test.txt").call();
- commits.add(git.commit().setMessage("commit#1").call());
+ repo.add().addFilepattern("Test.txt").call();
+ commits.add(repo.commit().setMessage("commit#1").call());
writeTrashFile("Test1.txt", "Hello world!!");
- git.add().addFilepattern("Test1.txt").call();
- commits.add(git.commit().setMessage("commit#2").call());
+ repo.add().addFilepattern("Test1.txt").call();
+ commits.add(repo.commit().setMessage("commit#2").call());
writeTrashFile("Test.txt", "Hello world!!!");
- git.add().addFilepattern("Test.txt").call();
- commits.add(git.commit().setMessage("commit#3").call());
+ repo.add().addFilepattern("Test.txt").call();
+ commits.add(repo.commit().setMessage("commit#3").call());
return commits;
}
}