mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-22 15:16:33 +00:00
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.
21 lines
445 B
Bash
Executable File
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
|