git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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]

From
Tthestar@fussycoder.id.au <thestar@fussycoder.id.au>
Date
Jan 19, 2009, 23:52 UTC
Message-ID
<20090120105228.xbo3gyc0odwcgcsc@webmail.fussycoder.id.au>
In-Reply-To
<83ocy3fmez.fsf@kalahari.s2.org>

Quoting Hannu Koivisto <azure@iki.fi>: <snip>

Show 5 quoted lines
> Kernel source contains pairs of files whose names differ only by
> case.  Windows cannot store such pairs (at least by default) and
> apparently there is no support for such a situation in git so
> you'll only get one file from each pair to your workspace and the
> other file is shown as modified.

Could git be modified to allow such repositories to be used on windows by locking files that are problematic, for example, a given repository could have files 'AAA' and 'aAa'.

The one that correctly represents the on-disk file would be 'open for edit', while the other file would be locked. To edit the other file, the existing file would need to be locked, and then the other file would then need to be open for edit.

This could even be extended to allow one to "open file AAA for edit as aAa.v2', giving the file an alternate name.

Such a workflow would only need to be used for such files, and could also be used when there are incompatible file names for that given partition type.

Previous: Hannu KoivistoNext: Daniel Barkalow
Message 4 of 16 in “after first git clone of linux kernel repository there are changed files in working dir”
  1. rdkrsrDec 10, 2008
  2. Brett SimmersDec 10, 2008
  3. Hannu KoivistoJan 19, 2009
  4. 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@fussycoder.id.au, Jan 19, 2009
  5. Daniel BarkalowJan 20, 2009
  6. John ChapmanJan 20, 2009
  7. Daniel BarkalowJan 20, 2009
  8. Alex RiesenJan 20, 2009
  9. Daniel BarkalowJan 21, 2009
  10. Alex RiesenJan 21, 2009
  11. Fwd: after first git clone of linux kernel repository there are changed files in working dirrdkrsr, Dec 11, 2008
  12. Linus TorvaldsDec 11, 2008
  13. rdkrsrDec 11, 2008
  14. Boyd Stephen Smith Jr.Dec 11, 2008
  15. Giuseppe BilottaDec 11, 2008
  16. Nick AndrewDec 12, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.