did-modify is a command line go utility that detects modified git files. Below you can find the the availability and usage.
You can install the did-modify utility for a specific OS at https://github.com/chef/did-modify/releases
Currently available for:
OS | ARCH |
---|---|
Darwin | x86_64 (amd64), arm64 |
FreeBSD | x86_64 (amd64) |
Linux | 386, x86_64 (amd64), arm64 |
Windows | x86_64 (amd64) |
You can optionally build did-modify via the goreleaser utility. Goreleaser uses a .goreleaser.yml
to define how you would like to build and release your go binary(ies).
Prints "true" to STDOUT if any files matching GLOBS were modified between HEAD and GITREF. Otherwise, prints "false".
Usage:
did-modify [flags]
Flags:
--git-ref string A valid Git reference (e.g. HEAD, master, origin/master, etc). (default "HEAD~1")
--globs strings Comma-separated list of glob patterns to inspect to determine if there are changes. (default [*])
-h, --help help for did-modify