| Age | Commit message (Collapse) | Author | Files | Lines |
|
Adds git-precheck(1) as the primary documentation for git-precheck.
Like with git-sonar, the previous 'git-precheck --help' text is
incorporated, and specifying --help now causes the new manpage to open.
Signed-off-by: Matt Hunter <m@lfurio.us>
|
|
The bulk of README.md is reworked, updated for accuracy, and reformatted
into git-sonar(1). The output of 'git-sonar --help' is removed as well
(melded into the new manpage). Now, specifying --help causes the
manpage itself to open.
Since 'git-sonar --help' used to be the only way to ask which version of
the script is installed, a --version output is added as a terse
replacement.
The makefile is updated to facilitate installation of this new
documentation.
Signed-off-by: Matt Hunter <m@lfurio.us>
|
|
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>
|
|
It is possible for git-sonar to be installed in such a way that it is
only executable by root. For example, by running `make install` after
checking out the git tree by a user with a restrictive umask value.
Use the install command in the Makefile to explicitly set the correct
mode bits of the installed git-sonar script.
Signed-off-by: Matt Hunter <m@lfurio.us>
|
|
The Makefile is updated to deal with the single 'git-sonar' file only,
now that the others have been merged into it.
Additionally, several issues have been fixed with the file, including:
* Now easier to override the PREFIX variable (install location)
* PWD works properly when running make with sudo
* Install now default to system-wide
* bin directory now explicitly created if it doesn't exist
A specific problem corrected by this patch is that `PREFIX=$HOME/.local
make install` on a fresh system will no longer result in the script
being copied to the _regular file_ $HOME/.local/bin, because bin did not
exist.
Signed-off-by: Malfurious <m@lfurio.us>
|
|
Signed-off-by: Malfurious <m@lfurio.us>
|
|
This will make it easier to install the tool. Currently everything
is just copied into the home directory. But nothing works I have
to figure out a little bit how to make this run under Linux.
The develop command can be used for quick iteration cycles.
|