RevListTest: fix warning that method parameter hides field 'git'

Change-Id: I12bd44e8bf75010ada2dff60f519fea61c7459de
This commit is contained in:
Matthias Sohn 2021-11-24 23:21:25 +01:00
parent 75c716f5d7
commit c20dd8206e
1 changed files with 9 additions and 9 deletions

View File

@ -55,21 +55,21 @@ public void testWithoutParentsFlag() throws Exception {
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;
}
}