lkml.org 
[lkml]   [2009]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 5/9] tip-lib: optimize get_auto_branches ...
Date
... and use it in get_all_auto_branches instead of coding it again

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.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@.*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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-12-03 23:29    [from the cache]
©2003-2011 Jasper Spaans