[PATCH 5/9] tip-lib: optimize get_auto_branches ...

From: Uwe Kleine-KÃnig
Date: Thu Dec 03 2009 - 17:26:14 EST


... and use it in get_all_auto_branches instead of coding it again

Signed-off-by: Uwe Kleine-KÃnig <u.kleine-koenig@xxxxxxxxxxxxxx>
---
.tip/bin/tip-lib | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/.tip/bin/tip-lib b/.tip/bin/tip-lib
index 805c8e2..1311d63 100644
--- a/.tip/bin/tip-lib
+++ b/.tip/bin/tip-lib
@@ -8,8 +8,7 @@ get_current_branch() {
}

get_auto_branches() {
-
- git ls-tree tip -- .tip/auto-branches/ | sed "s@.*tip/auto-branches/@@"
+ git ls-tree --name-only --full-name tip:.tip/auto-branches/
}

get_auto_branches_no_latest() {
@@ -19,8 +18,7 @@ get_auto_branches_no_latest() {

get_all_auto_branches() {

- AB=`git ls-tree tip -- .tip/auto-branches/ | sed "s@.*tip/auto-branches/@@"`
- for B in $AB
+ for B in $(get_auto_branches)
do
echo $B
echo $B"-base"
--
1.6.5.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/