aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Fürstenberg <azatoth@gmail.com>2011-03-15 21:25:51 +0100
committerCarl Fürstenberg <azatoth@gmail.com>2011-03-15 21:25:51 +0100
commitcd2ca7b5918b3cedfed497ac7d86bfd2c5f92a8b (patch)
tree770936ce0b0986905e643d8f219246298b8ff6fd
parent150d3decb54971a7378fb48d0b6970d3fb50ff95 (diff)
downloadjquery-cd2ca7b5918b3cedfed497ac7d86bfd2c5f92a8b.tar.gz
jquery-cd2ca7b5918b3cedfed497ac7d86bfd2c5f92a8b.zip
pull submodules make command
Adding an helper funciton to pull the latest from all registered submodules
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e0d1da716..7b67f7aff 100644
--- a/Makefile
+++ b/Makefile
@@ -99,4 +99,9 @@ distclean: clean
@@echo "Removing submodules"
@@rm -rf test/qunit src/sizzle
+# update the submodules to the latest at the most logical branch
+pull_submodules:
+ @@git submodule foreach "git pull origin \$$(git branch --no-color --contains \$$(git rev-parse HEAD) | grep -v \( | head -1)"
+ @@git submodule summary
+
.PHONY: all jquery lint min init jq clean