Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
ignore merges when generting history
Browse files Browse the repository at this point in the history
closes #258
  • Loading branch information
majkinetor committed Jan 13, 2022
1 parent d903205 commit e14bb59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AU/Plugins/History.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ param(
Write-Host "Saving history to $Path"

$res=[System.Collections.Specialized.OrderedDictionary]@{}
$log = git --no-pager log -q --grep '^AU: ' --date iso --all | Out-String
$log = git --no-pager --no-merges log -q --grep '^AU: ' --date iso --all | Out-String
$all_commits = $log | Select-String 'commit(.|\n)+?(?=\ncommit )' -AllMatches
foreach ($commit in $all_commits.Matches.Value) {
$commit = $commit -split '\n'
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- `$au_GalleryUrl` global variable is still maintained for compatibility
- Can specify as an environment variable `$env:au_GalleryPackageRootUrl` when working with Update-AUPackages (update_all.ps1) ([#254](https://github.com/majkinetor/au/issues/254))
- Can specify as a global variable in update.ps1 to override on per package basis.
- Plugins:
- History plugin now ignores merges ([#258](https://github.com/majkinetor/au/issues/258))

## 2021.7.18

Expand Down

0 comments on commit e14bb59

Please sign in to comment.