summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-07-25 14:10:12 +0000
committerJim Meyering <jim@meyering.net>2006-07-25 14:10:12 +0000
commit0ff7cb7f69a078618eb4e1553131c0206a00521a (patch)
tree2cd3d7dca70992495a857b8b3fb898b2c7064f66 /build-aux
parent627f9b7fb1f4c8e8ed02975681a894d593c25400 (diff)
downloadcoreutils-0ff7cb7f69a078618eb4e1553131c0206a00521a.tar.xz
vc-list-files: Handle git repositories, too.
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/ChangeLog4
-rwxr-xr-xbuild-aux/vc-list-files8
2 files changed, 11 insertions, 1 deletions
diff --git a/build-aux/ChangeLog b/build-aux/ChangeLog
index 0ab54c96e..281057a70 100644
--- a/build-aux/ChangeLog
+++ b/build-aux/ChangeLog
@@ -1,3 +1,7 @@
+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"
diff --git a/build-aux/vc-list-files b/build-aux/vc-list-files
index b952466e0..c7c4dbdaf 100755
--- a/build-aux/vc-list-files
+++ b/build-aux/vc-list-files
@@ -15,7 +15,13 @@ case $# in
*) 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