[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1259879084-20147-5-git-send-email-u.kleine-koenig@pengutronix.de>
Date: Thu, 3 Dec 2009 23:24:40 +0100
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: Ingo Molnar <mingo@...e.hu>
Cc: Thomas Gleixner <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>, linux-kernel@...r.kernel.org
Subject: [PATCH 5/9] tip-lib: optimize get_auto_branches ...
... and use it in get_all_auto_branches instead of coding it again
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
---
.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@...ip/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@...ip/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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists