From 7462ae9d4198131e547885d1209bc5e8d54f4327 Mon Sep 17 00:00:00 2001 From: John Demme Date: Tue, 17 Apr 2012 16:27:04 -0400 Subject: [PATCH 1/2] Instead of using 'find' to get a list of files to query with 'file', use 'git ls-files'. This allows us to ignore files while are already explicitly ignored. Very useful for those of us with very large build or data directories which are ignored. --- autogit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autogit b/autogit index bf698d1..9d72664 100755 --- a/autogit +++ b/autogit @@ -56,8 +56,8 @@ cp /tmp/gitignore ./.gitignore # Recurses SEARCHPATH to produce tree of files to be tested. # TODO try this: #find . -regex ????? -type f -exec file '{}' \; -find $SEARCHPATH -type f -name "*" | grep -v $EXCLUDE_DIRS > /tmp/$APP_NAME.searchtree - +#find $SEARCHPATH -type f -name "*" | grep -v $EXCLUDE_DIRS > /tmp/$APP_NAME.searchtree +git ls-files -o --exclude-standard | grep -v $EXCLUDE_DIRS > /tmp/$APP_NAME.searchtree #------Match MIME types. From fd15964a7c4032611aabb27f1f6c4d37ae41e634 Mon Sep 17 00:00:00 2001 From: John D Demme Date: Sat, 5 May 2012 20:28:39 -0400 Subject: [PATCH 2/2] Adding two more binary types --- autogit | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autogit b/autogit index 9d72664..599e6b6 100755 --- a/autogit +++ b/autogit @@ -19,6 +19,8 @@ MIME_TYPES="application/x-exe" # binary executables MIME_TYPES+="\|application/octet-stream" # databases, etc. +MIME_TYPES+="\|application/x-sharedlib" +MIME_TYPES+="\|application/x-archive" #MIME_TYPES+="\|application/xml" #MIME_TYPES+="\|text/x-perl" #MIME_TYPES+="\|text/plain"