From: Petr Baudis Date: Tue, 9 Sep 2008 19:51:48 +0000 (+0200) Subject: tg summary: 'L' denotes that push will update remote mate X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=commitdiff_plain;h=a8d65d218c971d013e294be03e123114093f4e74;ds=sidebyside tg summary: 'L' denotes that push will update remote mate --- diff --git a/README b/README index cc200ca..9df3699 100644 --- a/README +++ b/README @@ -267,6 +267,8 @@ tg summary ~~~~~~~~~~ Show overview of all TopGit-tracked topic branches and their up-to-date status ('0' marks that it introduces no own changes, + 'l'/'r' marks that it is local-only or has remote mate, + 'L'/'R' marks that it is ahead/out-of-date wrt. its remote mate, 'D' marks that it is out-of-date wrt. its dependencies, '!' marks that it has missing dependencies (even recursively), 'B' marks that it is out-of-date wrt. its base). diff --git a/tg-summary.sh b/tg-summary.sh index 1d679c4..8616d07 100644 --- a/tg-summary.sh +++ b/tg-summary.sh @@ -29,6 +29,8 @@ git for-each-ref refs/top-bases | branch_contains "refs/top-bases/$name" "refs/remotes/$base_remote/top-bases/$name" && branch_contains "$name" "refs/remotes/$base_remote/$name" } || rem_update='R' + [ "$rem_update" = 'R' ] || branch_contains "refs/remotes/$base_remote/$name" "$name" || + rem_update='L' deps_update=' ' needs_update "$name" >/dev/null || deps_update='D' deps_missing=' '