From: Paul Sokolovsky <paul.sokolovsky@linaro.org>
To: git@vger.kernel.org
Cc: repo-discuss <repo-discuss@googlegroups.com>
Subject: Excluding some refspecs from git push?
Date: Sun, 24 Jul 2011 00:46:50 +0300 [thread overview]
Message-ID: <20110724004650.408741c5@x34f> (raw)
Hello,
Is there a way to exclude some refspec from being processed by "git
push"? What I'm looking for is a syntax like:
push some-remote 'refs/*' '!refs/meta/config'
, with the meaning of "push all refs except refs/meta/config". What I'm
trying to do with this is to find out a generic way to mirror git
repositories managed by the Gerrit tool
(http://code.google.com/p/gerrit/), which since version 2.2 uses
refs/meta/config branch to store repository-local configuration, so
should not be mirrored between two Gerrit's.
--
Best Regards,
Paul
Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog
next reply other threads:[~2011-07-23 21:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-23 21:46 Paul Sokolovsky [this message]
2011-07-24 19:19 ` Excluding some refspecs from git push? Shawn Pearce
2011-07-24 19:32 ` Magnus Bäck
2011-07-24 19:45 ` Shawn Pearce
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110724004650.408741c5@x34f \
--to=paul.sokolovsky@linaro.org \
--cc=git@vger.kernel.org \
--cc=repo-discuss@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).