Files
scst/scripts/list-non-source-files
T
Gleb Chesnokov 1a1a75d9ed scripts: Remove non-Git VCS support
Mercurial branches remain in source-listing and cleanup helpers after
Subversion support was retired. SCST development now uses Git.

Remove Mercurial detection and commands together with stale Subversion
wording. Preserve the existing no-VCS source-list fallback and all Git
behavior.
2026-08-21 19:58:59 +03:00

21 lines
445 B
Bash
Executable File

#!/bin/bash
export LC_ALL=C
for d in "${@-.}"; do
(
cd "$d" &&
if git branch >&/dev/null; then
exec 3< <(find . -type f | cut -c3- | grep -v '^\.git/' | sort)
git ls-tree -r HEAD | cut -f2 -d' ' | sort |
while read -r f; do
while { read -r g; } <&3 && [ "$g" '<' "$f" ]; do echo "$g"; done
done
while { read -r g; } <&3; do echo "$g"; done
exec 3<&-
else
echo "Ignored directory $PWD"
fi
)
done