* Default refspec for branches
@ 2006-04-19 12:58 Josh Boyer
2006-04-19 17:45 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Josh Boyer @ 2006-04-19 12:58 UTC (permalink / raw)
To: git
Is there a way to change the default refspec that git pull uses on a
per branch basis? I know that you can create .git/remotes/<foo> and
do 'git pull <foo>' to pull from whatever is listed in there, but that
isn't quite what I'm looking for.
What I'd like to be able to do is create a branch and have 'git pull'
simply pull from the remote tree. I tried listing multiple refspecs
in .git/remotes/origin, but git didn't seem to like that.
For example, I clone Linus' tree. Then I create a branch called mtd.
When I'm working in that branch, I want 'git pull' to pull from
git://git.infradead.org/mtd-2.6.git.
Any ideas?
josh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Default refspec for branches
2006-04-19 12:58 Default refspec for branches Josh Boyer
@ 2006-04-19 17:45 ` Junio C Hamano
2006-04-19 17:52 ` Josh Boyer
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2006-04-19 17:45 UTC (permalink / raw)
To: Josh Boyer; +Cc: git
"Josh Boyer" <jwboyer@gmail.com> writes:
> Is there a way to change the default refspec that git pull uses on a
> per branch basis?
No.
But it is a _very_ reasonable thing people would want to be able
to. Please look at the last entry in:
Subject: Recent unresolved issues
Date: Fri, 14 Apr 2006 02:31:36 -0700
Message-ID: <7v64lcqz9j.fsf@assigned-by-dhcp.cox.net>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Default refspec for branches
2006-04-19 17:45 ` Junio C Hamano
@ 2006-04-19 17:52 ` Josh Boyer
0 siblings, 0 replies; 3+ messages in thread
From: Josh Boyer @ 2006-04-19 17:52 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
On 4/19/06, Junio C Hamano <junkio@cox.net> wrote:
> "Josh Boyer" <jwboyer@gmail.com> writes:
>
> > Is there a way to change the default refspec that git pull uses on a
> > per branch basis?
>
> No.
>
> But it is a _very_ reasonable thing people would want to be able
> to. Please look at the last entry in:
>
> Subject: Recent unresolved issues
> Date: Fri, 14 Apr 2006 02:31:36 -0700
> Message-ID: <7v64lcqz9j.fsf@assigned-by-dhcp.cox.net>
Hm, ok.
I'd offer to work on that, but I have a bit of a learning curve in
front of me before I could make something useful. If others beat me
to it, I certainly wouldn't mind ;)
josh
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-19 17:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-19 12:58 Default refspec for branches Josh Boyer
2006-04-19 17:45 ` Junio C Hamano
2006-04-19 17:52 ` Josh Boyer
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).