From: Scott Johnson <jaywir3@gmail.com>
To: Scott Johnson <jaywir3@gmail.com>,
git@vger.kernel.org, sandals@crustytoothpaste.net
Subject: Re: Feature Proposal: Track all branches from a given remote
Date: Sun, 26 Oct 2014 02:57:45 -0700 [thread overview]
Message-ID: <CAEFop40qOPaq-6QrvNR0_MsgTv4K0jDNqb+m=BUZzFSXQ35YSQ@mail.gmail.com> (raw)
In-Reply-To: <20141026001610.GK312818@vauxhall.crustytoothpaste.net>
Hi Brian:
> [remote "origin"]
> fetch = refs/heads/*:refs/heads/*
Yes, you're right, this works just fine as long as I move out from a
branch that's not in the remote in question, for example by doing:
git checkout -b nothing
git fetch
- OR -
git pull
Do you think there would be any interest in a patch that added this as
a simple command line option, though? I guess the idea of this patch
then would simply change this line in the .git/config file for the
length of the operation (and specified remote), execute the git pull
command, and then reset the configuration after the command finished.
(There really wouldn't be a need to affect the configuration on the
filesystem - simply the effective configuration used while git is
running for this operation).
Thanks,
~Scott
next prev parent reply other threads:[~2014-10-26 10:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-25 23:34 Feature Proposal: Track all branches from a given remote Scott Johnson
2014-10-26 0:16 ` brian m. carlson
2014-10-26 9:57 ` Scott Johnson [this message]
2014-10-26 11:18 ` Andreas Schwab
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='CAEFop40qOPaq-6QrvNR0_MsgTv4K0jDNqb+m=BUZzFSXQ35YSQ@mail.gmail.com' \
--to=jaywir3@gmail.com \
--cc=git@vger.kernel.org \
--cc=sandals@crustytoothpaste.net \
/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).