git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Parent-less branches
@ 2008-05-02 23:20 Ulrik Sverdrup
  2008-05-03  0:17 ` Jakub Narebski
  0 siblings, 1 reply; 11+ messages in thread
From: Ulrik Sverdrup @ 2008-05-02 23:20 UTC (permalink / raw)
  To: git; +Cc: win

> I wanted to do this just the other day, but I did it all inside the  
> one repo, and made some notes on the process here:
> 
> http://rails.wincent.com/wiki/Creating_independent_branches_with_Git
> 
> Basically, using "git write-tree" and "git commit-tree" plumbing.
> 
> Cheers,
> Wincent

I think I've seen this done much simpler, in this blog post:

http://madduck.net/blog/2007.07.11:creating-a-git-branch-without-ancestry/

Even though your instructions seem more complicated than they are since
they mix setting up the parentless branch and preparing the first
commit content.

regards,
ulrik

(I am not on the list, please CC)

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Parent-less branches
@ 2008-05-02 21:05 Pedro Melo
  2008-05-02 21:47 ` Junio C Hamano
  0 siblings, 1 reply; 11+ messages in thread
From: Pedro Melo @ 2008-05-02 21:05 UTC (permalink / raw)
  To: Git Mailing List

Hi,

inside an existing repository I want to create a new branch without a  
parent commit. Is there a set of commands to do this? Usually only  
the initial commit of a

The idea is to use that branch to track an external source tarball.  
 From time to time, I would checkout the branch and dump a new  
tarball with fresh source code, commit it to the branch and merge  
again with my master.

I could create the setup this setup if I create a separate repo for  
each external source tarball and then fetch them into my main  
repository. But I don't need those repos after that so I'm just  
wondering if there is a way to create the empty branch directly.

Thanks,
-- 
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo@simplicidade.org
Use XMPP!

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

end of thread, other threads:[~2008-05-04  5:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-02 23:20 Parent-less branches Ulrik Sverdrup
2008-05-03  0:17 ` Jakub Narebski
2008-05-03  0:46   ` Sverre Rabbelier
2008-05-04  5:50     ` Daniel Barkalow
  -- strict thread matches above, loose matches on Subject: below --
2008-05-02 21:05 Pedro Melo
2008-05-02 21:47 ` Junio C Hamano
2008-05-02 22:32   ` Wincent Colaiuta
2008-05-02 23:04     ` Pedro Melo
2008-05-02 23:04   ` Pedro Melo
2008-05-02 23:34     ` Randal L. Schwartz
2008-05-03 14:05   ` Johannes Schindelin

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