From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Subject: Re: Adding a new file as if it had existed
Date: Tue, 12 Dec 2006 12:26:29 +0000 [thread overview]
Message-ID: <200612121226.32772.andyparkins@gmail.com> (raw)
In-Reply-To: <7ac1e90c0612120332o20d6778bsa16a788fdc04a3a1@mail.gmail.com>
On Tuesday 2006 December 12 11:32, Bahadir Balban wrote:
> If I don't know which files I may be touching in the future for
> implementing some feature, then I am obliged to add all the files even
> if they are irrelevant. I said "performance reasons" assuming all the
> file hashes need checked for every commit -a to see if they're
> changed, but I just tried on a PIII and it seems not so slow.
Here's a handy rule of thumb I've learned in my use of git:
"git is fast. Really fast."
That'll hold you in good stead. In my experience there is no operation in git
that is slow. I've got some trees that are for embedded work and hold the
whole linux kernel, often more than once. Subversion, which I used
previously, took literally hours to import the whole tree. Git takes
minutes.
As to your direct concern: git doesn't hash every file at every commit. There
is no need. git has an "index" that is used to prepare a commit; at the time
you do the actual commit, git already knows which files are being checked in.
Obviously, Linus uses git for managing the linux kernel, he's said before
that he wanted a version control system that can do multiple commits /per
second/. git can do that.
In short - don't worry about making life easy for git - it's a workhorse and
does a grand job.
Andy
--
Dr Andy Parkins, M Eng (hons), MIEE
next prev parent reply other threads:[~2006-12-12 12:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-12 10:05 Adding a new file as if it had existed Bahadir Balban
2006-12-12 10:13 ` Junio C Hamano
2006-12-12 11:32 ` Bahadir Balban
2006-12-12 12:07 ` Johannes Schindelin
2006-12-12 12:26 ` Andy Parkins [this message]
2006-12-12 13:20 ` Andreas Ericsson
2006-12-12 18:31 ` Junio C Hamano
2006-12-13 9:40 ` Andreas Ericsson
2006-12-13 15:46 ` Johannes Schindelin
2006-12-13 15:52 ` Andreas Ericsson
2006-12-12 12:36 ` Jakub Narebski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200612121226.32772.andyparkins@gmail.com \
--to=andyparkins@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).