Commit fa68311
committed
Anchor git-gc proc matches to start of line, further tightening
Additional enhancements to reduce the likelihood of false positive
matches causing backups to fail after the GC cooldown window is
exceeded.
These should be much more resilient to matching either "gc" or
"nw-repack" in other commands. The changes here introduce the
following new rules for matching gc / repack processes::w
- Only match "git" at the beginning of the line. Verified all
GC / nw-repack invocations follow this pattern.
- Match either "git gc" or "git --opts ... gc" but require a space
before the subcommand (gc / nw-repack) in either case. i.e. Don't
match "git somethingc".
- Match "git ... gc" where "gc" is anchored at end of line.
- Match "git gc --opts" where gc is followed by a space.1 parent 263ebf2 commit fa68311
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments