Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean <seanlkml@sympatico.ca>2006-05-14 05:43:00 +0400
committerJunio C Hamano <junkio@cox.net>2006-05-15 03:21:02 +0400
commita62be77f5ebdbbd46d6956dc4d07571835588389 (patch)
tree7865bc748d628ae786951067568281fc5b7158dd /git-branch.sh
parent975bf9cf5ad5d440f98f464ae8124609a4835ce1 (diff)
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 <seanlkml@sympatico.ca> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-branch.sh')
-rwxr-xr-xgit-branch.sh3
1 files changed, 1 insertions, 2 deletions
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