git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: Johannes Sixt <j.sixt@viscovery.net>
Cc: llucianf <llucianf@gmail.com>,
	git@vger.kernel.org, Ferry Huberts <mailings@hupie.com>
Subject: Re: gitignore design
Date: Fri, 29 Jul 2011 23:39:51 +0200	[thread overview]
Message-ID: <201107292339.51753.jnareb@gmail.com> (raw)
In-Reply-To: <4E32B637.1030201@viscovery.net>

On Fri, 29 Jul 2011, Johannes Sixt napisał:
> Am 7/29/2011 15:19, schrieb Jakub Narebski:

> > Are you sure?  It seems to work as I thought it would.
> > [...]
> > Notice that change to 'bar' didn't get comitted.
> 
> Of course, it didn't get committed, you promised not to change it, so why
> should git commit it?
> 
> However, your example does not show the dangerous part. git-commit is not
> dangerous. But you might run into trouble when git has to merge content
> into the worktree or index; in this case, git may decide to just read the
> file instead of to unpack an object - assuming that the content on disk is
> identical to the unpacked object (it will do so because with
> --assume-unchanged you promised not to change the file). If you broke your
> promise, you get to what you deserve ;)

True, it is *assume-unchanged*, not ignore-changes bit; though the latter
would be also possible to implement, I think... but having some file not
changing and marking it as such for better performance is saner use case
than tracking some file but not really tracking it.
 
> No code reference, sorry, because I'm just parrotting what I've read
> elsewhere on the list, for example,
> http://thread.gmane.org/gmane.comp.version-control.git/146082/focus=146353

Well, there is hint that there might be problems, but not really says
that they are, and where (if one is lying about assume unchanged by changing
assume-unchanged file).

-- 
Jakub Narębski
Poland

  reply	other threads:[~2011-07-29 21:40 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-29 10:20 gitignore design llucianf
2011-07-29 11:51 ` Ferry Huberts
2011-07-29 12:01   ` llucianf
2011-07-29 12:08     ` Ferry Huberts
2011-07-29 12:16       ` llucianf
2011-07-29 12:27         ` Jakub Narebski
2011-07-29 12:44           ` llucianf
2011-07-29 12:57             ` Jakub Narebski
2011-07-29 14:01               ` Ferry Huberts
2011-07-29 12:19     ` Jakub Narebski
2011-07-29 12:58       ` Johannes Sixt
2011-07-29 13:19         ` Jakub Narebski
2011-07-29 13:31           ` Johannes Sixt
2011-07-29 21:39             ` Jakub Narebski [this message]
2011-07-30  3:10               ` Nguyen Thai Ngoc Duy
2011-07-30  6:45                 ` Piotr Krukowiecki
2011-07-30 13:22                   ` Nguyen Thai Ngoc Duy
2011-07-30 15:52                     ` Piotr Krukowiecki
2011-07-30 16:01                     ` Clemens Buchacher
2011-07-29 16:44 ` Philip Oakley

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=201107292339.51753.jnareb@gmail.com \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=j.sixt@viscovery.net \
    --cc=llucianf@gmail.com \
    --cc=mailings@hupie.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).