Re: [PATCH] status: hint the user about -uno if read_directory takes too long
- From
Torsten Bögershausen <tboegi@web.de>
- Date
- Mar 13, 2013, 15:21 UTC
- Message-ID
- <5140995E.3070907@web.de>
- In-Reply-To
- <1363179556-4144-1-git-send-email-pclouds@gmail.com>
On 13.03.13 13:59, Nguyễn Thái Ngọc Duy wrote:
Show 29 quoted lines
> This patch attempts to advertise -uno to the users who tolerate slow > "git status" on large repositories (or slow machines/disks). The 2 > seconds limit is quite arbitrary but is probably long enough to start > using -uno. > > Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> > --- > Documentation/config.txt | 4 ++++ > advice.c | 2 ++ > advice.h | 1 + > t/t7060-wtstatus.sh | 2 ++ > t/t7508-status.sh | 4 ++++ > t/t7512-status-help.sh | 1 + > wt-status.c | 20 +++++++++++++++++++- > wt-status.h | 1 + > 8 files changed, 34 insertions(+), 1 deletion(-) > > diff --git a/Documentation/config.txt b/Documentation/config.txt > index bbba728..e91d06f 100644 > --- a/Documentation/config.txt > +++ b/Documentation/config.txt > @@ -178,6 +178,10 @@ advice.*:: > the template shown when writing commit messages in > linkgit:git-commit[1], and in the help message shown > by linkgit:git-checkout[1] when switching branch. > + statusUno:: > + If collecting untracked files in linkgit:git-status[1] > + takes more than 2 seconds, hint the user that the option > + `-uno` could be used to stop collecting untracked files.
Thanks, I like the idea could we make a "de-Luxe" version where
statusUno is an integer, counting in milliseconds?
/Torsten