X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=tg.sh;fp=tg.sh;h=caf7d2836cc1db2e0269415aa224b3377c01d38c;hb=719000ce93601cb2608b761df4cf172fad4c68c7;hp=c77898678cdd275783746b0567a6de7edb905192;hpb=879c061083e3f9f82d247bf290c251ff33fd8c01;p=topgit.git 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