From 719000ce93601cb2608b761df4cf172fad4c68c7 Mon Sep 17 00:00:00 2001 From: Bert Wesarg Date: Thu, 7 Oct 2010 21:54:22 +0200 Subject: [PATCH] branch_empty: use pretty_tree and therefore respect -i/-w Signed-off-by: Bert Wesarg --- tg.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tg.sh b/tg.sh index c778986..caf7d28 100644 --- a/tg.sh +++ b/tg.sh @@ -284,10 +284,10 @@ needs_update() recurse_deps branch_needs_update "$@" } -# branch_empty NAME +# branch_empty NAME [-i | -w] branch_empty() { - [ -z "$(git diff-tree "refs/top-bases/$1" "$1" -- | fgrep -v " .top")" ] + [ "$(pretty_tree "$1" -b)" = "$(pretty_tree "$1" ${2-})" ] } # list_deps -- 2.11.4.GIT