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

Re: using the same repo with different OS

From
Junio C Hamano <junkio@cox.net>
Date
Feb 25, 2007, 18:20 UTC
Message-ID
<7v3b4ut7yq.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.63.0702251829530.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> It could be possible that the index is saved in a slightly different 
> format, due to different alignment strategies. Maybe 64-bit vs 32-bit has 
> differences there. I have no idea.

As far as I am aware of, there should be no such difference, although we probably rely on int being 32 and long being 64 bit. We do store our numbers in network byte order.

However, did somebody say FAT-32? I seem to recall that that filesystem lacks uid/gid, so I am reasonably sure there would be different return values for the same path from lstat(2) between git on Cygwin/MinGW and on Linux that mounts the same filesystem using vfat driver with different uid= & gid= mount options. That difference which would make the paths stat-dirty.

Also there is the problem of i-num we discussed lately. The i-num we get for the same path from lstat(2) can be different when same filesystem is mounted by different operating systems (remember that NTFS on Linux and Cygwin?).

So even though file format of the index may be designed and implemented to be portable, it might not be practical to use the same physical repository from different OSes, depending on the combination of things.

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 4 of 11 in “using the same repo with different OS”
  1. Stefano SpinucciFeb 25, 2007
  2. Stefano SpinucciFeb 25, 2007
  3. Johannes SchindelinFeb 25, 2007
  4. Junio C HamanoFeb 25, 2007
  5. Johannes SchindelinFeb 25, 2007
  6. Junio C HamanoFeb 25, 2007
  7. Stefano SpinucciFeb 28, 2007
  8. Shawn O. PearceFeb 28, 2007
  9. Stefano SpinucciMar 12, 2007
  10. Johannes SchindelinMar 12, 2007
  11. Stefano SpinucciMar 17, 2007

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.