Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Baumgart2011-05-12 04:48:02 -0400
committerChris Aniszczyk2011-05-12 13:31:30 -0400
commit2f724143881b110bff53983df9ccf1d88366acc1 (patch)
treedb85218d8f47b7520a97ea2ddd25efb73cdbb826 /org.eclipse.egit.core.test
parent5ee0cc6adf08601f81d4c1f481fd611819ffe28b (diff)
downloadegit-2f724143881b110bff53983df9ccf1d88366acc1.tar.gz
egit-2f724143881b110bff53983df9ccf1d88366acc1.tar.xz
egit-2f724143881b110bff53983df9ccf1d88366acc1.zip
Allow committing non workspace changes
The commit process is now based on files instead of resources. It is possible to commit changes on files that do not belong to the workspace. The commit dialog commits the changes of one single repository. Displaying diffs in the commit dialog for non workspace files needs to be implemented in a follow-up commit. Bug: 329061 Bug: 302349 Change-Id: Ib5f0bb2a6d86000683415b100702a0b322efd032 Signed-off-by: Jens Baumgart <jens.baumgart@sap.com> Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
Diffstat (limited to 'org.eclipse.egit.core.test')
-rw-r--r--org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CommitOperationTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CommitOperationTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CommitOperationTest.java
index 0ab116317..45773861a 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CommitOperationTest.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CommitOperationTest.java
@@ -72,7 +72,7 @@ public class CommitOperationTest extends GitTestCase {
new AddToIndexOperation(resources).execute(null);
CommitOperation commitOperation = new CommitOperation(null, null, null, TestUtils.AUTHOR, TestUtils.COMMITTER, "first commit");
commitOperation.setCommitAll(true);
- commitOperation.setRepos(new Repository[] {repository});
+ commitOperation.setRepository(repository);
commitOperation.execute(null);
testUtils.addFileToProject(project.getProject(), "zar/b.txt", "some text");
@@ -90,7 +90,7 @@ public class CommitOperationTest extends GitTestCase {
IFile[] filesToCommit = new IFile[] { project.getProject().getFile("zar/b.txt") };
commitOperation = new CommitOperation(filesToCommit, Arrays.asList(filesToCommit), null, TestUtils.AUTHOR, TestUtils.COMMITTER, "first commit");
- commitOperation.setRepos(new Repository[] {repository});
+ commitOperation.setRepository(repository);
try {
commitOperation.execute(null);
// TODO this is very ugly. CommitCommand should be extended
@@ -124,7 +124,7 @@ public class CommitOperationTest extends GitTestCase {
TestUtils.AUTHOR, TestUtils.COMMITTER,
"first commit");
commitOperation.setCommitAll(true);
- commitOperation.setRepos(new Repository[]{repository});
+ commitOperation.setRepository(repository);
commitOperation.execute(null);
Git git = new Git(repository);
@@ -140,7 +140,7 @@ public class CommitOperationTest extends GitTestCase {
TestUtils.AUTHOR, TestUtils.COMMITTER,
"second commit");
commitOperation.setCommitAll(true);
- commitOperation.setRepos(new Repository[]{repository});
+ commitOperation.setRepository(repository);
commitOperation.execute(null);
git = new Git(repository);
@@ -170,7 +170,7 @@ public class CommitOperationTest extends GitTestCase {
TestUtils.AUTHOR, TestUtils.COMMITTER,
"first commit");
commitOperation.setCommitAll(true);
- commitOperation.setRepos(new Repository[]{repository});
+ commitOperation.setRepository(repository);
commitOperation.execute(null);
Git git = new Git(repository);

Back to the top