Skip to content

Commit

Permalink
fix(Git): Ignore case in the log analyze ignores
Browse files Browse the repository at this point in the history
```
# filterUpdateLog: $true|$false
#   When show_update_log is set and this option is set, only commits that changed the installed applications and new manifests additiona will be shown.
#   This will result into showing you only commits related to your used manifests and newly added manifests available for installation.
#
                $filter = get_config 'filterUpdateLog' $false
                if ($filter) {
                    $allInstalled = @(installed_apps $true, installed_apps $false) | Select-Object -Unique
                    $regex = "^((((^(($($allInstalled -join '|'))):\s*)))|(.*?: Add version)).*$" # Ignore everything, which is not installed
                    #$para += @("--grep=""$regex""")
                    $para += @('--grep="^(((.*?):\s*Add version)).*$"')
                }
```
  • Loading branch information
Ash258 committed Oct 28, 2021
1 parent 97d1b67 commit 2c43379
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Git.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ function Invoke-GitCmd {
$para = @(
'--no-decorate'
'--format="tformat: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset"'
'--grep="\[\(scoop\|shovel\) skip\]"' # Ignore [scoop skip] [shovel skip]
'--grep="^Merge [cb]"' # Ignore merge commits
'--regexp-ignore-case'
'--extended-regexp'
'--invert-grep'
'--grep="\[(scoop|shovel) skip\]"' # Ignore [scoop skip] [shovel skip]
'--grep="^Merge [pcb]"' # Ignore merge commits
)
$Argument = $para + $Argument
}
Expand Down

0 comments on commit 2c43379

Please sign in to comment.