Git development
 help / color / mirror / Atom feed
* Complete http-pull; where should it go?
@ 2005-05-01 19:29 Daniel Barkalow
  2005-05-01 19:44 ` Linus Torvalds
  0 siblings, 1 reply; 14+ messages in thread
From: Daniel Barkalow @ 2005-05-01 19:29 UTC (permalink / raw)
  To: git; +Cc: Linus Torvalds, Petr Baudis

I've been working on http-pull, and I've made it able to download the
target commit from ...git/refs/<dir>/<name> (instead of making you figure
it out yourself), and also write the target it looks up to your local
.git/refs/<w-d>/<w-n> (which doesn't have to be at all related to the
source one. In fact, I just got the latest Linus tree with:

git-http-pull -t -w heads/linus heads/master \
  http://www.kernel.org/pub/scm/git/git.git/
git-read-tree $(cat .git/refs/heads/linus)
git-checkout-cache -a
git-update-cache --refresh

(and I didn't get any of the history, although I could have if I wanted
to; and I could get it now if I decided I needed it).

My question is, where does this belong? It's based on adding to the core
as it has been the knowledge that .git/refs/*/* consists of hex-format
hash files, both locally and on remote servers. I think this level of
information belongs in the plumbing; at least, if people are to be able to
use different git-based systems to access the same repositories, they have
to agree. And there seems to be that much agreement, and so it makes sense
to make it part of the core.

(For that matter, people seem to agree that refs/heads/ has heads, and
refs/heads/master is the one you want to pull if you don't know
otherwise; I didn't include this information at all)

	-Daniel
*This .sig left intentionally blank*


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

end of thread, other threads:[~2005-05-02  2:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-01 19:29 Complete http-pull; where should it go? Daniel Barkalow
2005-05-01 19:44 ` Linus Torvalds
2005-05-01 20:30   ` Daniel Barkalow
2005-05-01 20:46     ` Linus Torvalds
2005-05-01 21:25       ` Daniel Barkalow
2005-05-01 23:23         ` Linus Torvalds
2005-05-01 23:46           ` Daniel Barkalow
2005-05-01 23:48           ` Linus Torvalds
2005-05-02  0:09             ` Junio C Hamano
2005-05-02  1:50               ` Linus Torvalds
2005-05-02  2:03                 ` Junio C Hamano
2005-05-02  2:43                   ` Linus Torvalds
2005-05-02  2:31                 ` Daniel Barkalow
2005-05-01 21:25       ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox