diff options
Diffstat (limited to 'common')
-rw-r--r-- | common | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -17,6 +17,25 @@ gen_rev() { )" } +find_vcs() { + { + find "${git_dir}" \ + -name '.git' \ + -prune \ + , \ + -type f \ + -name '*.vcs' \ + -printf '%p\n' + git -C "${git_dir}" archive HEAD \ + | tar -t \ + | sed ' + /\.vcs$/!d + s@^@'"${git_dir%/}"'/@ + ' + } \ + | sort -u +} + git_dir="$1" if [ ! -d "${git_dir}" ]; then |