Bugfix and better management of commit messages.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-03-09 17:52:17 -05:00
parent 6e12663256
commit 584bd2403f
1 changed files with 10 additions and 4 deletions

View File

@ -415,11 +415,17 @@ FossilRepo >> sanitize: aFileNameWithRelativePath [
FossilRepo >> status [
| output |
output := OrderedDictionary new.
(self command: 'status') linesDo: [ :line | |k v temp|
(self command: 'status') linesDo: [ :line | | k v temp commitLog |
commitLog := OrderedCollection new.
temp := line splitOn: ': '.
k := temp first.
v := temp second trimmed.
output at: k put: v.
temp size = 2
ifTrue: [
k := temp first.
v := temp second trimmed.
output at: k put: v
]
ifFalse: [ commitLog add: line ].
output at: 'commitLog' put: commitLog
].
^ output
]