From: Andreas Ericsson <ae@op5.se>
To: しらいしななこ <nanako3@bluebottle.com>
Cc: git@vger.kernel.org
Subject: Re: [Q] assume unchanged?
Date: Thu, 13 Mar 2008 08:27:57 +0100 [thread overview]
Message-ID: <47D8D77D.8070908@op5.se> (raw)
In-Reply-To: <20080227222243.6117@nanako3.bluebottle.com>
しらいしななこ wrote:
> I was looking at the documentation of git-update-index because I
> thought git-add is the preferred way to do what the command was used
> for in the old versions of git, and wanted to see if the old command
> has more features that are missing from git-add.
>
> I noticed that there is --assume-unchanged option, and I read its
> description three times, but I do not understand it. What is it good
> for? Version control systems are used in order to keep track
> changes, and if using that option makes my changes ignored, how can
> it be a good thing?
>
> The manual says "This is sometimes helpful when working with a big
> project on a filesystem that has very slow lstat(2) system call", but
> unfortunately it does not answer my question.
>
> Could somebody explain, please?
>
If you're hacking on, oh, let's say the openoffice repo (or something
similarly huge), and the files you're actually testing are located on
an NFS-mounted network disk, you can use "--assume-unchanged java
--assume-unchanged writer" to make git not walk through those directories
and lstat(2) everything in it to see if there are changes. For huge
projects, doing the lstat() walk can take a couple of seconds on a quick
filesystem sitting on a local disk, and several minutes on a really slow
network disk.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
next prev parent reply other threads:[~2008-03-13 7:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 21:53 [Q] assume unchanged? しらいしななこ
2008-03-13 7:27 ` Andreas Ericsson [this message]
2008-03-13 7:33 ` Junio C Hamano
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=47D8D77D.8070908@op5.se \
--to=ae@op5.se \
--cc=git@vger.kernel.org \
--cc=nanako3@bluebottle.com \
/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).