status: only touch path we may need to check
commit688cd6d2b9335f2ac20d02996215a0e6da1779b5
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 14 Jan 2010 15:02:21 +0000 (14 22:02 +0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Jan 2010 04:40:25 +0000 (15 20:40 -0800)
tree74e37b0dfe1491b2e96df33d8bcf4718a9c87dc2
parent1f73566af5bec28cd8489c6139a9ede95817349c
status: only touch path we may need to check

This patch gets rid of whole-tree cache refresh and untracked file
search. Instead only specified path will be looked at.

Again some numbers on gentoo-x86, ~80k files:

Unmodified Git:

$ time git st eclass/
nothing to commit (working directory clean)

real    0m3.211s
user    0m1.977s
sys     0m1.135s

Modified Git:

$ time ~/w/git/git st eclass/
nothing to commit (working directory clean)

real    0m1.587s
user    0m1.426s
sys     0m0.111s

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c
wt-status.c