diff options
| author | Matt Hunter <m@lfurio.us> | 2026-02-22 18:22:54 -0500 |
|---|---|---|
| committer | Matt Hunter <m@lfurio.us> | 2026-02-22 18:22:54 -0500 |
| commit | def77dc0d6a0755849ad6593b744e7e5546794db (patch) | |
| tree | d464e700718f28fc60d43ebdb5147e3a3ff00c1c /Makefile | |
| parent | 0e9f8c84a7f8c96b63837361c6215eef8123034a (diff) | |
| parent | 8fc0fa9a8cf84d0d2c7ac5f4e3b4c79fadb99d8c (diff) | |
| download | git-sonar-def77dc0d6a0755849ad6593b744e7e5546794db.tar.gz git-sonar-def77dc0d6a0755849ad6593b744e7e5546794db.zip | |
Merge branch 'precheck'
Provide an additional entrypoint 'git-precheck', a new script intended
for use by other git-related scripts to determine the initial state of a
repository before continuing to do additional work.
git-sonar now leverages some of the information returned by git-precheck
to update its "is inside git repository" check, as well as provide a new
prompt string feature which visualizes on the prompt whether a merge,
rebase, etc. is in progress.
* precheck:
Add new prompt output element "condition"
Use git-precheck to determine if we are inside a repository
Add git-precheck script
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -SOURCE=git-sonar +SOURCE=git-sonar git-precheck PREFIX?=/usr/local PWD=$(shell pwd) @@ -21,7 +21,9 @@ install: $(SOURCE) mkdir -p $(PREFIX)/bin install -m 755 $(SOURCE) $(PREFIX)/bin +# Link each file separately since the full PWD is needed develop: $(SOURCE) @echo 'Symlinking in' $(PREFIX)/bin '...' mkdir -p $(PREFIX)/bin - ln -sf $(PWD)/$(SOURCE) $(PREFIX)/bin + ln -sf $(PWD)/git-sonar $(PREFIX)/bin + ln -sf $(PWD)/git-precheck $(PREFIX)/bin |
