From a62be77f5ebdbbd46d6956dc4d07571835588389 Mon Sep 17 00:00:00 2001 From: Sean Date: Sat, 13 May 2006 21:43:00 -0400 Subject: Add "--branches", "--tags" and "--remotes" options to git-rev-parse. "git branch" uses "rev-parse --all" and becomes much too slow when there are many tags (it scans all refs). Use the new "--branches" option of rev-parse to speed things up. Signed-off-by: Sean Estabrooks Signed-off-by: Junio C Hamano --- git-branch.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'git-branch.sh') diff --git a/git-branch.sh b/git-branch.sh index ebcc8989d8..134e68cf7f 100755 --- a/git-branch.sh +++ b/git-branch.sh @@ -82,8 +82,7 @@ done case "$#" in 0) - git-rev-parse --symbolic --all | - sed -ne 's|^refs/heads/||p' | + git-rev-parse --symbolic --branches | sort | while read ref do -- cgit v1.2.3