]> source.dussan.org Git - jgit.git/commit
Add command support for dropping a stashed commit 93/5393/8
authorKevin Sawicki <kevin@github.com>
Wed, 21 Mar 2012 17:50:16 +0000 (10:50 -0700)
committerChris Aniszczyk <zx@twitter.com>
Wed, 21 Mar 2012 21:16:14 +0000 (14:16 -0700)
commitb37b7e69cd3857b1c4463008a034b78870007497
treefa901526a945d6f5c78992feccb5f427d5b0550d
parentbbfa4c9b2c1df1471b48bed5a130d1d97aecb82e
Add command support for dropping a stashed commit

This extracts the logic for writing to the reflog from
RefDirectory into a new ReflogWriter class.  This class
creates a public API for writing reflog entries similar
to ReflogReader for reading reflog entries.

The new command supports rewriting the stash's log to remove
a configured entry followed by updating the stash ref to
the value at the bottom of the newly written log.

Change-Id: Icfcbc70e838666769a742a94196eb8dc9c7efcc7
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/StashDropCommandTest.java [new file with mode: 0644]
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/api/Git.java
org.eclipse.jgit/src/org/eclipse/jgit/api/StashDropCommand.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/RefDirectory.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/RefDirectoryRename.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/ReflogWriter.java [new file with mode: 0644]