git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Daniel Barkalow <barkalow@iabervon.org>
To: John Chapman <thestar@fussycoder.id.au>
Cc: Hannu Koivisto <azure@iki.fi>, rdkrsr <rdkrsr@googlemail.com>,
	git@vger.kernel.org
Subject: Re: An idea: maybe Git should use a lock/unlock file mode for problematic files? [Was: Re: after first git clone of linux kernel repository there are changed files in working dir]
Date: Tue, 20 Jan 2009 17:08:21 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.1.00.0901201651050.19665@iabervon.org> (raw)
In-Reply-To: <1232486929.4179.7.camel@therock.nsw.bigpond.net.au>

On Wed, 21 Jan 2009, John Chapman wrote:

> On Tue, 2009-01-20 at 15:11 -0500, Daniel Barkalow wrote:
> <snip>
> > 
> > The hard part is actually identifying what the user's filesystem has done. 
> > There's pretty good internal support for git knowing that, for a 
> > particular entry, the filesystem should not be consulted for information. 
> > I don't think anyone's come up with a suitably cross-platform and 
> > automatic way to figure out what's happened when git tries to write to a 
> > particular filename and the system decides it is the same as some other 
> > filename or it decides to use a different filename instead.
> 
> This would only need to interact with the git status command, wouldn't
> it?

The information is needed in a bunch of commands (diff and add, for 
example), but I believe that's already taken care on. The problem is 
getting it set automatically instead of having git not notice that the 
filesystem isn't doing what it expects.

> > Of course, it is reasonably likely that a project whose files can't all be 
> > checked out can't be dealt with anyway on that platform (IIRC, the Linux 
> > kernel build system assumes that it can create both .S and .s files, so it 
> > won't build on FAT). So nobody's been sufficiently motivated to try to 
> > implement a fix.
> 
> I doubt the kernel builds on windows, but this would allow a windows
> user to modify such files, perhaps in preparation for a patch that does
> allow the kernel to be built on windows?
> (Of course, we're using the kernel here as an example, right?  Nobody
> would be insane as to want to use windows for that!)
> 
> See, a very annoying thing about windows is that it is quite simple for
> a team to commit two files that differ by case alone to a git
> repository.

My impression was that this didn't happen in practice, because teams
would tend to not have two people create the same file at the same time, 
but with different cases, and people interacting with the same file at 
different times would use whatever case it was introduced with.

I think I'd only heard about problems for people who were using 
filesystems with different properties than what the rest of the developers 
on the project were using.

But I've only ever worked on projects that expect case-sensitivity, and 
mostly on projects that have a standard style that prevents duplication.

	-Daniel
*This .sig left intentionally blank*

  reply	other threads:[~2009-01-20 22:10 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <d304880b0812101019ufe85095h46ff0fe00d32bbd0@mail.gmail.com>
2008-12-10 18:22 ` after first git clone of linux kernel repository there are changed files in working dir rdkrsr
2008-12-10 20:20   ` Brett Simmers
     [not found]     ` <d304880b0812110142g41b80745ic09a7200e02dcdb0@mail.gmail.com>
2008-12-11 17:15       ` Fwd: " rdkrsr
2008-12-11 17:41         ` Linus Torvalds
2008-12-11 17:58           ` rdkrsr
2008-12-11 20:23             ` Boyd Stephen Smith Jr.
2008-12-11 20:35             ` Giuseppe Bilotta
2008-12-12 13:51             ` Nick Andrew
2009-01-19 13:36   ` Hannu Koivisto
2009-01-19 23:52     ` An idea: maybe Git should use a lock/unlock file mode for problematic files? [Was: Re: after first git clone of linux kernel repository there are changed files in working dir] thestar
2009-01-20 20:11       ` Daniel Barkalow
2009-01-20 21:28         ` John Chapman
2009-01-20 22:08           ` Daniel Barkalow [this message]
2009-01-20 23:25             ` Alex Riesen
2009-01-21  0:03               ` Daniel Barkalow
2009-01-21  7:25                 ` Alex Riesen

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.1.00.0901201651050.19665@iabervon.org \
    --to=barkalow@iabervon.org \
    --cc=azure@iki.fi \
    --cc=git@vger.kernel.org \
    --cc=rdkrsr@googlemail.com \
    --cc=thestar@fussycoder.id.au \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).