From 746fd821203d07f5e7bdac20d270c810a093a472 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sat, 9 Jun 2012 08:43:54 -0500 Subject: [PATCH] Add git-subup (submodule init and updating) --- .gitconfig | 1 + bin/git-subup | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 bin/git-subup diff --git a/.gitconfig b/.gitconfig index 728bb87..396c747 100644 --- a/.gitconfig +++ b/.gitconfig @@ -29,6 +29,7 @@ outgoing = !git-outgoing out = !git-outgoing subtree = !git-subtree + sup = !git-subup df = diff --patience dw = diff --patience --word-diff=color diff --git a/bin/git-subup b/bin/git-subup new file mode 100755 index 0000000..47be7b7 --- /dev/null +++ b/bin/git-subup @@ -0,0 +1,7 @@ +#!/bin/sh +# Checkout and update source for all registered submodules (.gitmodules) + +cd $(git rev-parse --show-toplevel) +git submodule update --init --quiet +git submodule sync --quiet +git submodule foreach git pull -- 2.43.0