Return-Path: X-Original-To: apmail-brooklyn-commits-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C35518E50 for ; Tue, 9 Feb 2016 14:42:57 +0000 (UTC) Received: (qmail 96906 invoked by uid 500); 9 Feb 2016 14:42:23 -0000 Delivered-To: apmail-brooklyn-commits-archive@brooklyn.apache.org Received: (qmail 96853 invoked by uid 500); 9 Feb 2016 14:42:23 -0000 Mailing-List: contact commits-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list commits@brooklyn.apache.org Received: (qmail 96786 invoked by uid 99); 9 Feb 2016 14:42:23 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2016 14:42:23 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E2FD6E1086; Tue, 9 Feb 2016 14:42:22 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: richard@apache.org To: commits@brooklyn.apache.org Date: Tue, 09 Feb 2016 14:42:27 -0000 Message-Id: <6ecbde74a466448493ea45c22820a449@git.apache.org> In-Reply-To: <1a28b7a0535d4579a37c6254ac50ca38@git.apache.org> References: <1a28b7a0535d4579a37c6254ac50ca38@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [6/7] brooklyn-docs git commit: add alias for printing all issues and reverting back to master add alias for printing all issues and reverting back to master Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/6a4559bf Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/6a4559bf Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/6a4559bf Branch: refs/heads/master Commit: 6a4559bf7d30b6535a4f20881d31eff3ea98189e Parents: 92721a7 Author: Alex Heneveld Authored: Tue Feb 9 10:15:26 2016 +0000 Committer: Alex Heneveld Committed: Tue Feb 9 10:20:55 2016 +0000 ---------------------------------------------------------------------- website/developers/code/git-more.md | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/6a4559bf/website/developers/code/git-more.md ---------------------------------------------------------------------- diff --git a/website/developers/code/git-more.md b/website/developers/code/git-more.md index c3e634b..5be1fc3 100644 --- a/website/developers/code/git-more.md +++ b/website/developers/code/git-more.md @@ -214,9 +214,16 @@ elsewhere on this page. This sets up variants of `pull`, `diff`, and `push` -- called `sup`, `sdiff`, and `spush` -- which act across submodules: {% highlight bash %} +# update all modules git config --global alias.sup '!git pull && git submodule update --remote --merge --recursive' +# show diffs across all modules git config --global alias.sdiff '!git diff && git submodule foreach "git diff"' +# return to master in all modules +git config --global alias.smaster '!git checkout master && echo && git submodule foreach "git checkout master && echo"' +# push in all modules git config --global alias.spush '!git push && git submodule foreach "git push"' +# show issues in all projects (only works if upstream configured properly for current branch) +git config --global alias.si '!hub issue && git submodule foreach "hub issue"' {% endhighlight %}