git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Restraining git pull/fetch to the current branch
@ 2007-01-11 21:47 Julian Phillips
  2007-01-12  0:59 ` Shawn O. Pearce
  2007-01-12  1:09 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Julian Phillips @ 2007-01-11 21:47 UTC (permalink / raw)
  To: git

While trying out git on a large repository (10000s of commits, 1000s of 
branches, ~2.5Gb when packed) at work I noticed that doing a pull was 
taking a long time (longer than I was prepared to wait anyway).

A quick test showed that a small repository (1 commit, 24k .git/objects) 
with 1000 branches took 1m30 to do "git pull" (local xfs partition).  I 
don't know if this is reasonable or not, but all I actually cared 
about was updating the current branch, which "git pull origin 
<branch_name>" did in 0.3s.

So what I would like to know is: is there any way to make a pull/fetch 
with no options default to only fetching the current branch? (other than 
scripting "git pull/fetch origin $(git symbolic-ref HEAD)" that is)

TIA

-- 
Julian

  ---
You can't go home again, unless you set $HOME.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-01-15 17:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-11 21:47 Restraining git pull/fetch to the current branch Julian Phillips
2007-01-12  0:59 ` Shawn O. Pearce
2007-01-12  1:09 ` Junio C Hamano
2007-01-12 14:08   ` Julian Phillips
2007-01-15 13:06     ` Julian Phillips

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).