commit 7c443fce87d5fd98997d7f7ff37f87e7d2757fbe
parent 79263b80c1b9d6c47fbcb8930b9a6020c0614d32
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Tue, 27 Oct 2020 11:27:44 +0100
git: alias to delete submodule
Former-commit-id: df6705c3fb574ba931b99a51f2a7b676d757bdcf
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/git/gitconfig b/git/gitconfig
@@ -79,6 +79,7 @@
subdate = submodule update --remote
substatus = submodule status
subactive = "!git submodule status | grep -v '^-'"
+ subdel = "!f(){ set -x; git submodule deinit -f "$1"; rm -rf .git/modules/"$1"; git rm -f "$1"; set +x; }; f"
root = !git rev-parse --show-toplevel | tr -d '\n'