author | Junio C Hamano <junkio@cox.net> | |
Mon, 18 Dec 2006 07:58:16 +0000 (23:58 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 19 Dec 2006 00:28:12 +0000 (16:28 -0800) | ||
commit | f3d985c38090b77e46dcc00d42574b9ba49bdc22 | |
tree | 580e70df696699b2064b5630d157e73074260218 | tree | snapshot |
parent | 8336afa563fbeff35e531396273065161181f04c | commit | diff |
Teach git-branch to delete tracking branches with -r -d
Because -r already means "remote" when listing, you can say:
$ git branch -d -r origin/todo origin/html origin/man
I just twisted it not to check fast-forwardness with the current
branch when you are removing a tracking branch. Most likely,
removal of a tracking branch is not because you are "done with"
it (for a local branch, it usually means "you merged it up"),
but because you are not even interested in it. In other words,
remote tracking branches are more like tags than branches.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Because -r already means "remote" when listing, you can say:
$ git branch -d -r origin/todo origin/html origin/man
I just twisted it not to check fast-forwardness with the current
branch when you are removing a tracking branch. Most likely,
removal of a tracking branch is not because you are "done with"
it (for a local branch, it usually means "you merged it up"),
but because you are not even interested in it. In other words,
remote tracking branches are more like tags than branches.
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-branch.c | diff | blob | history |