Blob Blame History Raw
#!/bin/bash
# list symset files in a symsets-*.tar.gz file in a form suitable for
# diffing. To install this script as a text conversion filter for git diff:
#
# git config diff.symsets.textconv scripts/list-symsets
# echo 'symsets-*.tar.gz diff=symsets' >>.git/info/attributes

tar tzf "$@" | sed -r 's:symsets-.*-([^-]*)/:symsets-*-\1/:' | sort