+2006-07-25 Jim Meyering <jim@meyering.net>
+
+ * vc-list-files: Handle git repositories, too.
+
2006-07-19 Jim Meyering <jim@meyering.net>
* vc-list-files: Command line args correspond to an "include"
*) echo "$0: too many arguments" 1>&2; exit 1 ;;
esac
-if test -d .hg; then
+if test -d .git; then
+ if test "x$include_prefix" = x; then
+ git-ls-files | cut -d ' ' -f 3
+ else
+ git-ls-files | cut -d ' ' -f 3 | grep "^$include_prefix/"
+ fi
+elif test -d .hg; then
if test "x$include_prefix" = x; then
hg manifest | cut -d ' ' -f 3
else