Skip to main content
diff options
authorThomas Wolf2019-05-17 17:08:41 -0400
committerThomas Wolf2019-05-22 03:39:03 -0400
commite8ef6ff1e1044c8dc3b3443bd37f34873c6c7de0 (patch)
treec18dee2d054e0d07b16fe13c82549d92d0dcd766 /org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/
parent2cd5ab8d6f1321384e17675fe7e6df5bd61d3839 (diff)
History: new operation to check out files from a commit
Add a new operation in the CommitFileDiffViewer to check out file revisions shown into the working tree. Previously the user would have to navigate to the file in the package explorer (or project explorer) and use "Replace with...->Commit" there, which opens a dialog to choose the commit. Or use "Open This Version" and then copy-paste the text. Both are rather round-about ways to achieve this. Newly there's a "Check Out This Version" command in the context menu that enables the user to do this directly. The same operation is also available in the outline view of the unified diff page of the commit viewer. The code checking for potential loss of uncommitted changes and for running launches and then asking the user to confirm the operation has been factored out of DiscardChangesActionHandler into CommandConfirmation. Bug: 362907 Change-Id: Ie237e24b9e78b888b0de816d39c1c43ca44c400a Signed-off-by: Thomas Wolf <>
Diffstat (limited to 'org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/')
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/
index aa6a9128a..0252f2ca6 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/
@@ -1611,6 +1611,7 @@ MultiBranchOperationResultDialog_CheckoutResultOK=Checkout completed normally
MultiBranchOperationResultDialog_CheckoutResultNotTried=The operation was not executed
CommitFileDiffViewer_CanNotOpenCompareEditorTitle=Cannot Open Compare Editor
+CommitFileDiffViewer_CheckoutThisVersionMenuLabel=Chec&k Out This Version
CommitFileDiffViewer_CompareMenuLabel=Compare with Previous &Version
CommitFileDiffViewer_CompareWorkingDirectoryMenuLabel=Compare with &Working Tree
CommitFileDiffViewer_CopyFilePathMenuLabel=&Copy File Path

Back to the top