summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatt Hunter <m@lfurio.us>2026-02-22 18:22:54 -0500
committerMatt Hunter <m@lfurio.us>2026-02-22 18:22:54 -0500
commitdef77dc0d6a0755849ad6593b744e7e5546794db (patch)
treed464e700718f28fc60d43ebdb5147e3a3ff00c1c /Makefile
parent0e9f8c84a7f8c96b63837361c6215eef8123034a (diff)
parent8fc0fa9a8cf84d0d2c7ac5f4e3b4c79fadb99d8c (diff)
downloadgit-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--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 95538ac..6edd7f4 100644
--- a/Makefile
+++ b/Makefile
@@ -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