summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e74ee78)
raw | patch | inline | side by side (parent: e74ee78)
author | Eric Wong <normalperson@yhbt.net> | |
Thu, 2 Mar 2006 20:23:17 +0000 (12:23 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 3 Mar 2006 07:06:04 +0000 (23:06 -0800) |
If we decide to use refs/remotes/, having a convenient way to
list them would be nice.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
list them would be nice.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-branch.sh | patch | blob | history |
diff --git a/git-branch.sh b/git-branch.sh
index 6ac961e6d18b8419abdaa5ed57a55ef58f7bc0fb..663a3a370c8889e2ba78d627811c652d41e7971b 100755 (executable)
--- a/git-branch.sh
+++ b/git-branch.sh
exit 0
}
+ls_remote_branches () {
+ git-rev-parse --symbolic --all |
+ sed -ne 's|^refs/\(remotes/\)|\1|p' |
+ sort
+}
+
force=
while case "$#,$1" in 0,*) break ;; *,-*) ;; *) break ;; esac
do
delete_branch "$@"
exit
;;
+ -r)
+ ls_remote_branches
+ exit
+ ;;
-f)
force="$1"
;;