From: Petr Baudis Date: Tue, 9 Sep 2008 19:41:55 +0000 (+0200) Subject: tg info: Show information about remote branches X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=e73f7e8baa9fad9a0632deaa3de65b7a761edb04;p=topgit.git tg info: Show information about remote branches --- diff --git a/tg-info.sh b/tg-info.sh index 1fa250c..7209169 100644 --- a/tg-info.sh +++ b/tg-info.sh @@ -38,6 +38,14 @@ echo "Base: $base_rev" branch_contains "$name" "$base_rev" || echo "Base is newer than head! Please run \`tg update\`." +if has_remote "$name"; then + echo "Remote Mate: $base_remote/$name" + branch_contains "$base_rev" "refs/remotes/$base_remote/top-bases/$name" || + echo "Local base is out of date wrt. the remote base." + branch_contains "$name" "refs/remotes/$base_remote/$name" || + echo "Local head is out of date wrt. the remote head." +fi + git cat-file blob "$name:.topdeps" | sed '1{ s/^/Depends: /; n; }; s/^/ /;'