Skip to content

Commit

Permalink
Handle blanks in GitStamp
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusDoe committed Jun 12, 2024
1 parent c33d1f0 commit b8369c4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
accessing
class initialization
requestEmail
self flag: 'this is basically a nightmare...'.
((Smalltalk class canUnderstand: #isHeadless) and: [ Smalltalk isHeadless ])
ifTrue: [ self error: 'Please set the default email using GitStamp defaultEmail:' ].
^GitUI
^ (GitUI
request: 'Please provide a valid e-mail address for your Git commits so that you can be contacted if necessary.'
initialAnswer: 'user@domain.ext'
initialAnswer: 'user@domain.ext') withBlanksTrimmed
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
accessing
class initialization
requestName
self flag: 'this is basically a nightmare...'.
((Smalltalk class canUnderstand: #isHeadless) and: [ Smalltalk isHeadless ])
ifTrue: [ self error: 'Please set the default name using GitStamp defaultName:' ].
^GitUI
^ (GitUI
request: 'Please provide your full name for the authorship information of your Git commits.'
initialAnswer: 'Firstname Lastname'
initialAnswer: 'Firstname Lastname') withBlanksTrimmed
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"now" : "jr 8/25/2020 18:43",
"nowBy:email:" : "jr 8/26/2020 23:25",
"readFrom:" : "jr 8/26/2020 23:36",
"requestEmail" : "jr 7/24/2020 10:22",
"requestName" : "jr 7/24/2020 10:22" },
"requestEmail" : "mad 6/12/2024 11:55",
"requestName" : "mad 6/12/2024 11:55" },
"instance" : {
"atTime:" : "jr 8/26/2020 23:08",
"cleanUp:" : "tonyg 2/23/2010 21:24",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
initialization
setItem: aCommit
super setItem: aCommit.
self string: ({
self string: (({
self formatTimeStamp: aCommit committer timeStamp.
aCommit author name.
(self decorationsFor: aCommit), (aCommit message lineNumber: 1).
} joinSeparatedBy: Character tab).
} collect: #withBlanksTrimmed) joinSeparatedBy: Character tab).
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"balloonText" : "mad 9/14/2023 19:29",
"decorationsFor:" : "mad 9/12/2023 13:27",
"formatTimeStamp:" : "mad 8/31/2023 14:08",
"setItem:" : "mad 9/11/2023 17:00" } }
"setItem:" : "mad 6/12/2024 11:55" } }

0 comments on commit b8369c4

Please sign in to comment.