https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114451

Revision: 114451
Author:   platonides
Date:     2012-03-23 16:16:42 +0000 (Fri, 23 Mar 2012)
Log Message:
-----------
Simple wrapper to apply a git command to all git repositories below the current 
folder.

Added Paths:
-----------
    trunk/tools/code-utils/subgits

Added: trunk/tools/code-utils/subgits
===================================================================
--- trunk/tools/code-utils/subgits                              (rev 0)
+++ trunk/tools/code-utils/subgits      2012-03-23 16:16:42 UTC (rev 114451)
@@ -0,0 +1,16 @@
+#!/bin/sh
+# This command allows you to perform the same action on several git 
repositories sharing a common root.
+#
+# For instance, after cloning you will want to do 
+#   subgits config user.email "[email protected]"
+#   subgits config user.name "your name"
+#
+# For configuring git-review:
+#   subgits config gitreview.username "shell-username"
+#   subgits review -s
+#
+# For updating all the repositories:
+#   subgits pull
+
+find -name .git -execdir git "$@" \;
+


Property changes on: trunk/tools/code-utils/subgits
___________________________________________________________________
Added: svn:executable
   + *


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to