Skip to content

Commit

Permalink
Added IceWorkingCopy>>#gtActionRepairFor:
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvc committed Oct 21, 2024
1 parent 667acb2 commit 7256346
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/GToolkit4Git/IceWorkingCopy.extension.st
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
Extension { #name : #IceWorkingCopy }

{ #category : #'*GToolkit4Git' }
IceWorkingCopy >> gtActionRepairFor: composite [
<gtAction>
self isDetached ifFalse: [ ^ composite noAction ].
^ composite button
icon: BrGlamorousVectorIcons repair;
tooltip: 'Adopt repository head as reference commit';
priority: 30;
action: [ :element | element phlow spawnObject: (self referenceCommit: self repository headCommit) ]
]

{ #category : #'*GToolkit4Git' }
IceWorkingCopy >> gtAllLoadedExamples [
^ self loadedPackages flatCollect: [ :anIcePackage |
Expand Down

0 comments on commit 7256346

Please sign in to comment.