Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 197035 Details for
Bug 347856
ResetCommand with path doesn't reset a file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
failing test case
MyResetCommandTest.java (text/plain), 920 bytes, created by
Tomasz Zarna
on 2011-05-31 15:35:37 EDT
(
hide
)
Description:
failing test case
Filename:
MIME Type:
Creator:
Tomasz Zarna
Created:
2011-05-31 15:35:37 EDT
Size:
920 bytes
patch
obsolete
>package org.eclipse.jgit.api; > >import static org.junit.Assert.assertEquals; > >import java.io.File; > >import org.eclipse.jgit.lib.RepositoryTestCase; >import org.junit.Test; > >public class MyResetCommandTest extends RepositoryTestCase { > @Test > public void testPathsReset() throws Exception { > File directory = createTempFile(); > Git git = Git.cloneRepository().setURI( > "https://github.com/zaza/33rd.git").setDirectory(directory) > .call(); > > File slidesCss = new File(directory, "slides.css"); > write(slidesCss, "change"); > > assertEquals(1, git.status().call().getModified().size()); > > git.add().addFilepattern(slidesCss.getName()).call(); > > assertEquals(1, git.status().call().getChanged().size()); > > git.reset().addPath(slidesCss.getName()).call(); > > assertEquals(0, git.status().call().getChanged().size()); > assertEquals(1, git.status().call().getModified().size()); > > git.getRepository().close(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 347856
: 197035