Skip to content

Commit 56c35f8

Browse files
committed
Show changelog after updating scoop and buckets
1 parent 16f59b4 commit 56c35f8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libexec/scoop-update.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function update_scoop() {
5353
if(!$git) { abort "Scoop uses Git to update itself. Run 'scoop install git' and try again." }
5454

5555
write-host "Updating Scoop..."
56+
$last_update = (Get-Date (Get-Date $(scoop config lastupdate)).ToLocalTime() -Format s)
5657
$currentdir = fullpath $(versiondir 'scoop' 'current')
5758
if(!(test-path "$currentdir\.git")) {
5859
$newdir = fullpath $(versiondir 'scoop' 'new')
@@ -73,6 +74,7 @@ function update_scoop() {
7374
Push-Location $currentdir
7475
git_pull -q
7576
$res = $lastexitcode
77+
git_log --no-decorate --date=local --since="`"$last_update`"" --format="`"format: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset`"" HEAD
7678
if($res -ne 0) {
7779
abort 'Update failed.'
7880
}
@@ -86,6 +88,7 @@ function update_scoop() {
8688
write-host "Updating '$_' bucket..."
8789
Push-Location (bucketdir $_)
8890
git_pull -q
91+
git_log --no-decorate --date=local --since="`"$last_update`"" --format="`"format: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset`"" HEAD
8992
Pop-Location
9093
}
9194

0 commit comments

Comments
 (0)