Skip to content

Commit

Permalink
Fix #850
Browse files Browse the repository at this point in the history
- Make text in warning color (set by theme) if head is tagged
  • Loading branch information
guillep committed Jun 18, 2018
1 parent a258289 commit 6c363f7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TOMOVE
colorWarning
^ Smalltalk ui theme warningTextColor
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TOMOVE
toWarningMessage: aString
^ aString asText allBold makeAllColor: self colorWarning
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ status
entity workingCopy workingCopyState isUnknownCommitState
ifTrue: [ ^ self toErrorMessage: entity workingCopy workingCopyState description ].
entity workingCopy isDetached
ifTrue: [ ^ self toErrorMessage: 'Detached Working Copy' ].
ifTrue: [ ^ self toErrorMessage: 'Detached Working Copy' ].
(entity head isDetached and: [ entity head tags notEmpty ])
ifTrue: [ ^ self toWarningMessage: 'Detached HEAD' ].
entity head isDetached
ifTrue: [ ^ self toErrorMessage: 'Detached HEAD' ].

Expand Down
4 changes: 4 additions & 0 deletions Iceberg.package/IceCommitish.class/instance/isTag.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testing
isTag

^ false
4 changes: 4 additions & 0 deletions Iceberg.package/IceTag.class/instance/isTag.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
testing
isTag

^ true

0 comments on commit 6c363f7

Please sign in to comment.