5 lines
113 B
Bash
Executable file
5 lines
113 B
Bash
Executable file
#!/bin/bash
|
|
|
|
filter=(sed '/^\./d')
|
|
[ "$1" = '-a' ] && filter=('cat') && shift
|
|
git ls-files "$@" | "${filter[@]}"
|