From: Junio C Hamano Date: Mon, 30 Jul 2007 21:04:57 GMT Subject: Re: Efficient way to import snapshots? Message-ID: <7vps29k3gm.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Linus Torvalds writes: > That said, I just noticed something nasty: "git add ." is *horrible*. It > does the full SHA1 re-computation even though the index is up-to-date. > That's really nasty. > > So right now, due to this performance bug, it's actually much better to do > something more complex, namely something like > > git ls-files -o | git update-index --add --stdin > git commit -a > > which is a lot more efficient than just doing "git add .". > > Junio? I _thought_ we already took the index into account with "git add", > but we obviously don't. I do not know offhand. By the way, the above "something more complex" may be a simple "git add -u".