threads / discuss / 6232

Deleting branches in cogito

Subject: Deleting branches in cogito

## tl;dr

2 messages between Jan 5, 2007 and Jan 9, 2007.

replies: 1people: 2as markdown or json

Jonathan Trites· Jan 5, 2007, 10:29 UTC · lore

Forgive my brain damage, but how does one go about deleting branches in cogito? I've been up and down google and the mailing lists and I can't find any mention of how one does this.

I see there are commands cg-switch, cg-branch-add, cg-branch-chg, and cg-branch-ls, but nowhere do I see a "cg-branch-rm" command or equivalent cg-switch command line option.

In the git commands I see "git-branch -d", and maybe this is the command I am looking for, but is there a "native" cogito command to delete branches?

Jeff King· Jan 9, 2007, 15:16 UTC · re: Jonathan Trites · lore

Re: Deleting branches in cogito

On Fri, Jan 05, 2007 at 04:29:59AM -0600, Jonathan Trites wrote:
> Forgive my brain damage, but how does one go about deleting branches
> in cogito? I've been up and down google and the mailing lists and I
> can't find any mention of how one does this.
I haven't used cogito in a while, but IIRC, there isn't an automated way
to do it. You can always
  rm .git/branches/branch_name
Or did you mean a local branch (see below)?
> I see there are commands cg-switch, cg-branch-add, cg-branch-chg, and
> cg-branch-ls, but nowhere do I see a "cg-branch-rm" command or
> equivalent cg-switch command line option.

cg-switch works on local branches ('branches' in git, or 'heads', or lines of development). Cogito remote branches (just 'branches' in cogito, similar to 'remotes' in git) are handled by cg-branch-*.

For remote branches, see above. If you want to delete a head or line of development in cogito, I think you will need to use git-branch -d.

Hope that answers your question.
-Peff

← back to recent threads