mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
16 lines
396 B
Text
16 lines
396 B
Text
|
#!/bin/bash
|
||
|
|
||
|
filter_cmd=("cat")
|
||
|
if test -f ".indentignore"; then
|
||
|
filter_args=()
|
||
|
while read -r line; do
|
||
|
if test -n "$line"; then
|
||
|
filter_args+=("-e" "$line")
|
||
|
fi
|
||
|
done < ".indentignore"
|
||
|
if [[ ${#filter_args[@]} -gt 0 ]]; then
|
||
|
filter_cmd=("grep" "-v" "${filter_args[@]}")
|
||
|
fi
|
||
|
fi
|
||
|
git ls-files "*.c" | "${filter_cmd[@]}" | xargs -d '\n' gst-indent
|