From: Yann Dirson Date: Fri, 04 May 2007 21:28:42 GMT Subject: Re: using stgit/guilt for public branches Message-ID: <20070504212842.GB19253@nan92-1-81-57-214-146.fbx.proxad.net> In-Reply-To: <200705040131.17837.robin.rosenberg.lists@dewire.com> On Fri, May 04, 2007 at 01:31:17AM +0200, Robin Rosenberg wrote: > fredag 04 maj 2007 skrev Robin Rosenberg: > > torsdag 03 maj 2007 skrev Yann Dirson: > > [...] > > > As for publishing, I use the following config entries to publish my > > > own stack of patches to stgit. You can see at > > > http://repo.or.cz/w/stgit/ydirson.git that gitweb shows pretty clearly > > > the structure of the stack (even though things could surely be made > > > better). > > > > > > I use "git push -f" to publish - maybe the "+" refspec syntax would > > > work with push, I'll try it next time :) > > > > > > [remote "orcz"] > > > url = git+ssh://ydirson@repo.or.cz/srv/git/stgit/ydirson.git > > > push = refs/heads/master:refs/heads/master > > > push = refs/patches/master/*:refs/patches/master/* > > > > Beautiful!! > > > Would it be possible to push only applied patches, and drop unapplied > ones? This would require stgit-level knowledge, so we would need an stgit command. Maybe "stg publish" or "stg branch --publish" with the current syntax, since we already have "push". I'd be in favor of "stg branch push" for the next-gen syntax, though ;) > It would only matter when one wants to prune the remote repo > so it may not be terribly important, but it seems I pushed quite a > lot of references from old patches that I haven't decided what to do > with yet and those will get new commit id's anyway. For now you can delete them manually with "git push remote/ref:". Best regards, -- Yann.