unixorn/git-extra-commands

View on GitHub
bin/git-tag-diff

Summary

Maintainability
Test Coverage
#!/usr/bin/env bash
#
# Source: https://github.com/jwiegley/git-scripts/blob/master/git-tag-diff
# Show the differences between local tags and ones on the remote, if any
# (defaults to origin, but another remote may be specified on the commandline)

diff -u <(git show-ref --tags --dereference) \
    <(git ls-remote --tags "$1" | tr '\t' ' ')