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

Re: how to revert changes in working tree?

From
Shawn Pearce <spearce@spearce.org>
Date
Dec 6, 2006, 18:13 UTC
Message-ID
<20061206181302.GA20320@spearce.org>
In-Reply-To
<4576A60A.3060003@gmail.com>
Liu Yubao <yubao.liu@gmail.com> wrote:
Show 24 quoted lines
> $ git merge "sync from origin" HEAD origin
> Updating 088406b..ff51a98
> include/linux/netfilter/xt_CONNMARK.h: needs update
> include/linux/netfilter/xt_DSCP.h: needs update
> include/linux/netfilter/xt_MARK.h: needs update
> include/linux/netfilter_ipv4/ipt_CONNMARK.h: needs update
> include/linux/netfilter_ipv4/ipt_DSCP.h: needs update
> include/linux/netfilter_ipv4/ipt_ECN.h: needs update
> include/linux/netfilter_ipv4/ipt_MARK.h: needs update
> include/linux/netfilter_ipv4/ipt_TCPMSS.h: needs update
> include/linux/netfilter_ipv4/ipt_TOS.h: needs update
> include/linux/netfilter_ipv4/ipt_TTL.h: needs update
> include/linux/netfilter_ipv6/ip6t_HL.h: needs update
> include/linux/netfilter_ipv6/ip6t_MARK.h: needs update
> net/ipv4/netfilter/ipt_ECN.c: needs update
> net/ipv4/netfilter/ipt_TOS.c: needs update
> net/ipv4/netfilter/ipt_TTL.c: needs update
> net/ipv6/netfilter/ip6t_HL.c: needs update
> net/netfilter/xt_CONNMARK.c: needs update
> net/netfilter/xt_DSCP.c: needs update
> net/netfilter/xt_MARK.c: needs update
> fatal: Entry 'net/ipv4/netfilter/ipt_ECN.c' not uptodate. Cannot merge.
> 
> I really have never modified these files manually.
You are just *very unlucky*.  :-)

The Linux kernel has case sensitive file names. In other words there are two files in the kernel:

  net/netfilter/xt_MARK.c
  net/netfilter/xt_mark.c

and they have different content! On NTFS or FAT, where filenames are not case sensitive, these become the same file. So Git now starts to think that the file was modified, because one of those files overwrote the other when they were checked out.

Moral of the story: You cannot work with the linux.git repository on a case insensitive filesystem, like NTFS, FAT (Windows), or HFS+ (Mac OS X).

Previous: Jakub NarebskiNext: Liu Yubao
Message 8 of 11 in “how to revert changes in working tree?”
  1. Liu YubaoDec 6, 2006
  2. Alex RiesenDec 6, 2006
  3. Liu YubaoDec 6, 2006
  4. Alex RiesenDec 6, 2006
  5. Liu YubaoDec 6, 2006
  6. Alex RiesenDec 6, 2006
  7. Jakub NarebskiDec 6, 2006
  8. Shawn PearceDec 6, 2006
  9. Liu YubaoDec 7, 2006
  10. Juergen RuehleDec 7, 2006
  11. Jakub NarebskiDec 6, 2006

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.