From 2216da1abec24bbab1cec481153bd605c4069e81 Mon Sep 17 00:00:00 2001 From: Tobias Frisch <tfrisch@uni-koblenz.de> Date: Thu, 13 Jul 2023 01:34:24 +0200 Subject: [PATCH] Add script to ease workflow with submodules Signed-off-by: Tobias Frisch <tfrisch@uni-koblenz.de> --- scripts/submodules.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/submodules.sh diff --git a/scripts/submodules.sh b/scripts/submodules.sh new file mode 100755 index 00000000..75933841 --- /dev/null +++ b/scripts/submodules.sh @@ -0,0 +1,10 @@ +#!/bin/sh +if [ "$1" = "init" ]; then + git submodule init + git submodule update +elif [ "$1" = "reset" ]; then + git submodule deinit -f . + git submodule update --init +elif [ "$1" = "update" ]; then + git submodule foreach git pull +fi \ No newline at end of file -- GitLab