Skip to content

Commit

Permalink
Hide "Reset <branch> to <commitish>" when a tag is selected (fixes ph…
Browse files Browse the repository at this point in the history
  • Loading branch information
daniels220 committed Dec 16, 2023
1 parent b6cd4ab commit da5cf9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Iceberg-TipUI/IceTipResetBranchToThisCommitCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ IceTipResetBranchToThisCommitCommand class >> defaultDescription [
^ 'Resets the selected branch to the selected commit. It does not modify the working copy (!!).'
]

{ #category : 'testing' }
IceTipResetBranchToThisCommitCommand >> canBeExecuted [

^ self selectedBranch notNil and: [ self selectedBranch entity isBranch ]
]

{ #category : 'executing' }
IceTipResetBranchToThisCommitCommand >> defaultNameFromContext [

Expand Down

0 comments on commit da5cf9a

Please sign in to comment.