git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* StGit metadata grabbing with git clone
@ 2006-11-22 12:05 Otavio Salvador
  2006-11-22 20:29 ` Robin Rosenberg
  2006-11-23 10:47 ` Catalin Marinas
  0 siblings, 2 replies; 6+ messages in thread
From: Otavio Salvador @ 2006-11-22 12:05 UTC (permalink / raw)
  To: git

Hello,

I'm a happy user of stgit together with git to maintain a patch queue
while I or the company team is working on patches that will be send
for merging. Both works great but we're having troubles when we try to
clone a stgit repository.

When I clone the repository it grab the source but it loses the
metadata. I would like to grab those too. Does anybody has a solution
or a trick how I can do that?

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio@debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft gives you Windows ... Linux gives

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

* Re: StGit metadata grabbing with git clone
  2006-11-22 12:05 StGit metadata grabbing with git clone Otavio Salvador
@ 2006-11-22 20:29 ` Robin Rosenberg
  2006-11-22 21:38   ` Petr Baudis
  2006-11-23 10:47 ` Catalin Marinas
  1 sibling, 1 reply; 6+ messages in thread
From: Robin Rosenberg @ 2006-11-22 20:29 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: git

onsdag 22 november 2006 13:05 skrev Otavio Salvador:
> Hello,
>
> I'm a happy user of stgit together with git to maintain a patch queue
> while I or the company team is working on patches that will be send
> for merging. Both works great but we're having troubles when we try to
> clone a stgit repository.
>
> When I clone the repository it grab the source but it loses the
> metadata. I would like to grab those too. Does anybody has a solution
> or a trick how I can do that?

You can copy the repo using rsync or scp instead of git-clone or use stg 
uncommit after the regular clone. 


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

* Re: StGit metadata grabbing with git clone
  2006-11-22 20:29 ` Robin Rosenberg
@ 2006-11-22 21:38   ` Petr Baudis
  2006-11-22 23:56     ` Robin Rosenberg
  0 siblings, 1 reply; 6+ messages in thread
From: Petr Baudis @ 2006-11-22 21:38 UTC (permalink / raw)
  To: Robin Rosenberg; +Cc: Otavio Salvador, git

On Wed, Nov 22, 2006 at 09:29:24PM CET, Robin Rosenberg wrote:
> onsdag 22 november 2006 13:05 skrev Otavio Salvador:
> > Hello,
> >
> > I'm a happy user of stgit together with git to maintain a patch queue
> > while I or the company team is working on patches that will be send
> > for merging. Both works great but we're having troubles when we try to
> > clone a stgit repository.
> >
> > When I clone the repository it grab the source but it loses the
> > metadata. I would like to grab those too. Does anybody has a solution
> > or a trick how I can do that?
> 
> You can copy the repo using rsync or scp instead of git-clone or use stg 
> uncommit after the regular clone. 

How do you sync them then?

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
The meaning of Stonehenge in Traflamadorian, when viewed from above, is:
"Replacement part being rushed with all possible speed."

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

* Re: StGit metadata grabbing with git clone
  2006-11-22 21:38   ` Petr Baudis
@ 2006-11-22 23:56     ` Robin Rosenberg
  0 siblings, 0 replies; 6+ messages in thread
From: Robin Rosenberg @ 2006-11-22 23:56 UTC (permalink / raw)
  To: Petr Baudis; +Cc: Otavio Salvador, git

onsdag 22 november 2006 22:38 skrev Petr Baudis:
> On Wed, Nov 22, 2006 at 09:29:24PM CET, Robin Rosenberg wrote:
> > onsdag 22 november 2006 13:05 skrev Otavio Salvador:
> > > Hello,
> > >
> > > I'm a happy user of stgit together with git to maintain a patch queue
> > > while I or the company team is working on patches that will be send
> > > for merging. Both works great but we're having troubles when we try to
> > > clone a stgit repository.
> > >
> > > When I clone the repository it grab the source but it loses the
> > > metadata. I would like to grab those too. Does anybody has a solution
> > > or a trick how I can do that?
> >
> > You can copy the repo using rsync or scp instead of git-clone or use stg
> > uncommit after the regular clone.
>
> How do you sync them then?

1) Don't. You're supposed to share stgit patches via email.

2) Want to mess try anyway?

At first I was thinking NO!,  but then again, it might be "interesting" to try 
it. 

You can publish the state of a branch using git push. This will look like the 
pu branch in the official Git repo, i.e. a branch whose list of commits get 
changed completely, rather than being appended to. This could be considered 
sane, ie. you publish the current state of your work.

You can also pull from a stgitted branch. Still sane, if you wan't to look at 
somebody else's work.

I mentioned uncommit. I'm not sure that was a wise suggestion. If you wan't to 
push and pull changes. don't uncommit incomming changes and don't pretend to 
work on the same patch and you'll probably be just fine. .....  


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

* Re: StGit metadata grabbing with git clone
  2006-11-22 12:05 StGit metadata grabbing with git clone Otavio Salvador
  2006-11-22 20:29 ` Robin Rosenberg
@ 2006-11-23 10:47 ` Catalin Marinas
  2006-11-23 14:31   ` Otavio Salvador
  1 sibling, 1 reply; 6+ messages in thread
From: Catalin Marinas @ 2006-11-23 10:47 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: git

Otavio Salvador <otavio@debian.org> wrote:
> I'm a happy user of stgit together with git to maintain a patch queue
> while I or the company team is working on patches that will be send
> for merging. Both works great but we're having troubles when we try to
> clone a stgit repository.
>
> When I clone the repository it grab the source but it loses the
> metadata. I would like to grab those too. Does anybody has a solution
> or a trick how I can do that?

Most of the StGIT metadata can be generated by "uncommit" (the reason
I still keep a lot of this metadata like author etc. is for
speed). However, I'm not sure how well this would work since you can
nor synchronise the patches afterwards. StGIT works well for sharing
patches via e-mail but you might want to consider topic branches
instead of patches (though StGIT seems more convenient).

Another idea is to export the patches (stg export) to a common place
and import them in the other tree (stg import --series --replace). I
could also add a --sync option to "import", instead of --replace,
which would perform a three-way merge with the coresponding local
patches so that it grabs any additional changes in both repositories
or branches (similar to "pick --fold", option which I added for the
same reason).

Yet another idea is a "stg import" command for remote repositories or
branches which would bring in the StGIT metadata.

At the bottom of the TODO list is something that would solve this,
only that I've never found the time to think about it properly. I work
on several branches (and even separate trees) and share patches
between them. It would be nice to be able to synchronise the changes
to these patches.

-- 

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

* Re: StGit metadata grabbing with git clone
  2006-11-23 10:47 ` Catalin Marinas
@ 2006-11-23 14:31   ` Otavio Salvador
  0 siblings, 0 replies; 6+ messages in thread
From: Otavio Salvador @ 2006-11-23 14:31 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: git

Catalin Marinas <catalin.marinas@arm.com> writes:

> Otavio Salvador <otavio@debian.org> wrote:
>> I'm a happy user of stgit together with git to maintain a patch queue
>> while I or the company team is working on patches that will be send
>> for merging. Both works great but we're having troubles when we try to
>> clone a stgit repository.
>>
>> When I clone the repository it grab the source but it loses the
>> metadata. I would like to grab those too. Does anybody has a solution
>> or a trick how I can do that?
>
> Most of the StGIT metadata can be generated by "uncommit" (the reason
> I still keep a lot of this metadata like author etc. is for
> speed). However, I'm not sure how well this would work since you can
> nor synchronise the patches afterwards. StGIT works well for sharing
> patches via e-mail but you might want to consider topic branches
> instead of patches (though StGIT seems more convenient).
>
> Another idea is to export the patches (stg export) to a common place
> and import them in the other tree (stg import --series --replace). I
> could also add a --sync option to "import", instead of --replace,
> which would perform a three-way merge with the coresponding local
> patches so that it grabs any additional changes in both repositories
> or branches (similar to "pick --fold", option which I added for the
> same reason).
>
> Yet another idea is a "stg import" command for remote repositories or
> branches which would bring in the StGIT metadata.
>
> At the bottom of the TODO list is something that would solve this,
> only that I've never found the time to think about it properly. I work
> on several branches (and even separate trees) and share patches
> between them. It would be nice to be able to synchronise the changes
> to these patches.

That would be a really nice feature. Besides, would be nice to have a
way to plug something on clone and push git methods so you might send
all those metadata without much hassle.

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio@debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft gives you Windows ... Linux gives

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

end of thread, other threads:[~2006-11-23 14:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-22 12:05 StGit metadata grabbing with git clone Otavio Salvador
2006-11-22 20:29 ` Robin Rosenberg
2006-11-22 21:38   ` Petr Baudis
2006-11-22 23:56     ` Robin Rosenberg
2006-11-23 10:47 ` Catalin Marinas
2006-11-23 14:31   ` Otavio Salvador

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