Permalink
Browse files

branch_empty: use pretty_tree and therefore respect -i/-w

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
  • Loading branch information...
1 parent 879c061 commit 719000ce93601cb2608b761df4cf172fad4c68c7 @bertwesarg bertwesarg committed Oct 7, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 tg.sh
View
@@ -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

0 comments on commit 719000c

Please sign in to comment.