summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/resources
diff options
context:
space:
mode:
authorKevin Sawicki <kevin@github.com>2012-03-21 10:50:16 -0700
committerChris Aniszczyk <zx@twitter.com>2012-03-21 14:16:14 -0700
commitb37b7e69cd3857b1c4463008a034b78870007497 (patch)
treefa901526a945d6f5c78992feccb5f427d5b0550d /org.eclipse.jgit/resources
parentbbfa4c9b2c1df1471b48bed5a130d1d97aecb82e (diff)
downloadjgit-b37b7e69cd3857b1c4463008a034b78870007497.tar.gz
jgit-b37b7e69cd3857b1c4463008a034b78870007497.zip
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>
Diffstat (limited to 'org.eclipse.jgit/resources')
-rw-r--r--org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
index 2f07c97acc..0554efacd7 100644
--- a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
+++ b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
@@ -429,6 +429,9 @@ startingReadStageWithoutWrittenRequestDataPendingIsNotSupported=Starting read st
stashApplyFailed=Applying stashed changes did not successfully complete
stashApplyOnUnsafeRepository=Cannot apply stashed commit on a repository with state: {0}
stashCommitMissingTwoParents=Stashed commit ''{0}'' does not have two parent commits
+stashDropDeleteRefFailed=Deleting stash reference failed with result: {0}
+stashDropFailed=Dropping stashed commit failed
+stashDropMissingReflog=Stash reflog does not contain entry ''{0}''
stashFailed=Stashing local changes did not successfully complete
stashResolveFailed=Reference ''{0}'' does not resolve to stashed commit
statelessRPCRequiresOptionToBeEnabled=stateless RPC requires {0} to be enabled