From: Bert Wesarg Date: Sat, 09 Oct 2010 20:56:54 GMT Subject: [TopGit PATCH 03/11] branch_empty: use pretty_tree and therefore respect -i/-w Message-ID: <6e000c8cf21fac6cd4cf8608c8dc021b039e6f83.1286657607.git.bert.wesarg@googlemail.com> In-Reply-To: <456834d2977615d5f5c41ca3947fb45cd82bfd87.1286657607.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