Code

git-gui: Delete branches with 'git branch -D' to clear config
authorShawn O. Pearce <spearce@spearce.org>
Fri, 9 May 2008 00:29:42 +0000 (20:29 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 9 May 2008 00:29:42 +0000 (20:29 -0400)
commit76bb40cde0e15e8d0e8493abb0bd18a5d6386ad7
treeff33f87a50e81ce0c5396399554c85dd5faeeb8d
parentfe70225dc730c5af4c491106d1e0226d1c014d1e
git-gui: Delete branches with 'git branch -D' to clear config

If we are deleting a local branch from refs/heads/ we need to
make sure any associated configuration stored in .git/config is
also removed (such as branch.$name.remote and branch.$name.merge).
The easiest way to do this is to use git-branch as that automatically
will look for and delete configuration keys as necessary.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/branch_delete.tcl