summaryrefslogtreecommitdiffstats
path: root/git-precheck (follow)
AgeCommit message (Collapse)AuthorFilesLines
8 daysAdd git-precheck scriptMatt Hunter1-0/+94
This is an alternative entrypoint primarily intended for use in other scripts. The purpose of git-precheck is to easily determine the state of a git repository before going on to perform additional, possibly disruptive work. git-precheck tries to cover as many bases as possible - odd cases like 'merge in progress', 'cherry-pick in progress', etc. By default, we only exit success (0) if we are in a repo that is completely clean (no file modifications or untracked files present) and has no ongoing operation. Signed-off-by: Matt Hunter <m@lfurio.us>