Skip to content

Commit

Permalink
Add change log
Browse files Browse the repository at this point in the history
Also include changes for the last few commits that have not been
released at this point.

Closes #62.
  • Loading branch information
MariusDoe committed Dec 23, 2024
1 parent 413338a commit 4cda875
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/GitS-Core.package/GSSelfUpdater.class/class/changeLog.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
change-log
changeLog
^ {
'Warnings about uncommitted changes before merging only occur when not up-to-date.'.
'The list of branches, remote branches, etc. is now a tree. Hover over the root nodes to get an explanation.'.
'A change log is shown after a self-update (the one you are currently seeing :)).'.
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
self-updating
postInstallVersion: aString
self installedVersion: (self getShaOfVersion: aString).
self
installedVersion: (self getShaOfVersion: aString);
showChangeLog.
17 changes: 17 additions & 0 deletions src/GitS-Core.package/GSSelfUpdater.class/class/showChangeLog.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
change-log
showChangeLog
| log notShown |
log := self changeLog.
notShown := log copyWithFirst: self shownChangeLogLength.
notShown ifEmpty: [^ self].
self inform: (String streamContents: [:stream |
stream
nextPutAll: 'Change log since your last update of git-s:';
cr.
notShown do: [:each |
stream
nextPutAll: '* ';
nextPutAll: each key;
nextPut: Character tab;
nextPutAll: each value;
cr]]).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
change-log
shownChangeLogLength
^ ShownChangeLogLength ifNil: [0]
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"basicCheckForNewVersion" : "mad 10/25/2024 11:34",
"branchName" : "mad 11/4/2024 13:01",
"branchName:" : "mad 11/4/2024 13:02",
"changeLog" : "mad 12/23/2024 21:12",
"checkForNewVersion" : "mad 10/25/2024 11:32",
"fullRepositoryName" : "mad 10/9/2024 16:33",
"getShaOfVersion:" : "mad 10/24/2024 15:07",
Expand All @@ -17,13 +18,15 @@
"lastVersionCheckWasRecent" : "mad 10/25/2024 11:35",
"metacelloRepositorySpecForVersion:" : "mad 11/4/2024 13:02",
"organizationName" : "mad 10/9/2024 16:34",
"postInstallVersion:" : "mad 10/9/2024 18:40",
"postInstallVersion:" : "mad 12/23/2024 21:04",
"projectName" : "mad 10/9/2024 16:33",
"promptForNewVersion" : "mad 10/25/2024 11:49",
"repositoryName" : "mad 10/9/2024 16:34",
"requestAndSetBranchName" : "mad 11/4/2024 13:12",
"requestBranchName" : "mad 11/4/2024 13:05",
"selfUpdate" : "mad 10/9/2024 19:28",
"showChangeLog" : "mad 12/23/2024 20:59",
"shownChangeLogLength" : "mad 12/23/2024 20:59",
"versionCheckInterval" : "mad 10/25/2024 11:34" },
"instance" : {
} }
3 changes: 2 additions & 1 deletion src/GitS-Core.package/GSSelfUpdater.class/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"classvars" : [
"BranchName",
"InstalledVersion",
"LastVersionCheck" ],
"LastVersionCheck",
"ShownChangeLogLength" ],
"commentStamp" : "",
"instvars" : [
],
Expand Down

0 comments on commit 4cda875

Please sign in to comment.