TopGit: How to retire obsolete topic branches?

martin f krafft madduck at debian.org
Sat May 9 10:26:09 UTC 2009


also sprach Petr Baudis <pasky at ucw.cz> [2009.05.09.1134 +0200]:
> You can do `git remote prune` to get rid of branches that disappeared
> upstream. Hypothetical `tg retire` (a stupid name, of course) would
> do git branch -d branch and git push origin :branch :refs/bases/branch.
> `tg update` or some other command would then have to do the `git remote
> prune` part and have some fancy logic to retire the branches locally
> too if there are no changes in them. The case when there are local
> changes in the retired branches is left as an exercise for the reader.
> ;-)

Sounds good. Only the "fancy logic" part is a bit murky right now.
:)

-- 
 .''`.   martin f. krafft <madduck at d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
in africa some of the native tribes have a custom of beating the
ground with clubs and uttering spine chilling cries. anthropologists
call this a form of primitive self-expression. in america they call
it golf.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
URL: <http://lists.alioth.debian.org/pipermail/vcs-pkg-discuss/attachments/20090509/10c7b7b2/attachment.pgp>


More information about the vcs-pkg-discuss mailing list