git status takes 30 seconds on Windows 7. Why?

2013-03-27 Thread Jim Kinsman
git status takes 30 seconds on Windows 7. Here are some stats:
git ls-files | wc -l
27330

git ls-files -o | wc -l
4

$ git diff --name-only | xargs du -chs
68K update_import_contacts.php
68K total

What can I do??? This is so slow it is unbearable.
By the way i've done git gc several times and nothing changed.
--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: git status takes 30 seconds on Windows 7. Why?

2013-03-27 Thread Jim Kinsman
The only anti-virus I have installed is Microsoft Security Essentials
I turned off and it was still the same:
$ cat /usr/bin/gitstatus
start_time=`date +%s`
git status  echo run time is $(expr `date +%s` - $start_time) s


$ gitstatus
# On branch test
# Changes not staged for commit:
#   (use git add file... to update what will be committed)
#   (use git checkout -- file... to discard changes in working directory)
#
#   modified:   orgoptions.php
#   modified:   update_import_contacts.php
#
no changes added to commit (use git add and/or git commit -a)
run time is 10 s

On Wed, Mar 27, 2013 at 12:17 PM, Matthieu Moy
matthieu@grenoble-inp.fr wrote:
 Jim Kinsman jakins...@gmail.com writes:

 git status takes 30 seconds on Windows 7.

 Any anti-virus installed? They can interfer badly with disk-intensive
 tasks ...

 --
 Matthieu Moy
 http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html