From: Bert Wesarg Date: Fri, 08 Oct 2010 07:58:01 GMT Subject: [TopGit PATCH 03/10] branch_empty: use pretty_tree and therefore respect -i/-w Message-ID: In-Reply-To: <0e1f993f68d36f0c3d848c2aa78f46c7130a24f1.1286524446.git.bert.wesarg@googlemail.com> Signed-off-by: Bert Wesarg --- tg.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tg.sh b/tg.sh index 308ed28..a166a70 100644 tg.sh --- a/tg.sh +++ b/tg.sh @@ -283,10 +283,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 -- 1.7.1.1067.g5aeb7