Merge pull request #18855 from Homebrew/manpage-ignore-date

This commit is contained in:
Mike McQuaid 2024-12-03 09:25:34 +00:00 committed by GitHub
commit 59540e8b6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,10 +28,13 @@ module Homebrew
Completions.update_shell_completions!
diff = system_command "git", args: [
"-C", HOMEBREW_REPOSITORY, "diff", "--exit-code", "docs/Manpage.md", "manpages", "completions"
"-C", HOMEBREW_REPOSITORY,
"diff", "--shortstat", "--patch", "--exit-code", "docs/Manpage.md", "manpages", "completions"
]
if diff.status.success?
ofail "No changes to manpage or completions."
elsif /1 file changed, 1 insertion\(\+\), 1 deletion\(-\).*-\.TH "BREW" "1" "\w+ \d+"/m.match?(diff.stdout)
ofail "No changes to manpage or completions other than the date."
else
puts "Manpage and completions updated."
end