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 4733a87 commit f839d8c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Iceberg-TipUI/IceTipCommitishModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ IceTipCommitishModel >> commitModels [
self subclassResponsibility
]

{ #category : 'testing' }
IceTipCommitishModel >> isBranch [

^ self entity isBranch
]

{ #category : 'testing' }
IceTipCommitishModel >> isCommitish [

Expand Down
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 isBranch ]
]

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

Expand Down

0 comments on commit f839d8c

Please sign in to comment.