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

Re: Some information that git diff saves and that git status does not

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 9, 2010, 06:56 UTC
Message-ID
<7vmxyi0yqk.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4B95EC43.2040705@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
Show 7 quoted lines
> Junio C Hamano schrieb:
>> I didn't fully read what you wrote but after you copy a repository from
>> one to another outside git (be it done with unison or rsync), you should
>> run "update-index --refresh".
>
> And the reason for this is that git also looks at the inode numbers, and I
> guess that unison does not go as far as to preserve them between machines...

True; we used to (and you can still configure git to) check st_dev too but we stopped to doing that by default as it is unstable even in a normal use case (read: no "cp" involved) on some networked file systems.

I wonder how stable inum is on inode-less filesystems (say FAT). I guess it is not usually a problem because carrying repositories on USB keychains is typically done as a sneakernet and with bare repositories.

Previous: Johannes SixtNext: Sergio Callegari
Message 4 of 7 in “Some information that git diff saves and that git status does not”
  1. SergioMar 8, 2010
  2. Junio C HamanoMar 8, 2010
  3. Johannes SixtMar 9, 2010
  4. Junio C HamanoMar 9, 2010
  5. Sergio CallegariMar 9, 2010
  6. Dmitry PotapovMar 9, 2010
  7. Jens LehmannMar 8, 2010

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.