chiark / gitweb /
tg info: Note if local head is ahead of remote mate
authorPetr Baudis <pasky@suse.cz>
Tue, 9 Sep 2008 19:53:10 +0000 (21:53 +0200)
committerPetr Baudis <pasky@suse.cz>
Tue, 9 Sep 2008 19:53:10 +0000 (21:53 +0200)
tg-info.sh

index f5502db9ac507a8a2db841ba2818429eb8aa5fff..6c00d83b8804c2788665d17cc977ccf42dc556a8 100644 (file)
@@ -44,6 +44,8 @@ if has_remote "$name"; then
                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."
+       branch_contains "refs/remotes/$base_remote/$name" "$name" ||
+               echo "* Local head is ahead of the remote head."
 fi
 
 git cat-file blob "$name:.topdeps" |