From: Liu Yubao <yubao.liu@gmail.com>
To: Shawn Pearce <spearce@spearce.org>
Cc: Alex Riesen <raa.lkml@gmail.com>, git@vger.kernel.org
Subject: Re: how to revert changes in working tree?
Date: Thu, 07 Dec 2006 09:42:47 +0800 [thread overview]
Message-ID: <45777197.50805@gmail.com> (raw)
In-Reply-To: <20061206181302.GA20320@spearce.org>
Shawn Pearce wrote:
>
> 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).
>
Yes, you are very right.
$ git ls-files |tr A-Z a-z | sort | uniq -c |grep -v "1 "
2 include/linux/netfilter/xt_connmark.h
2 include/linux/netfilter/xt_dscp.h
2 include/linux/netfilter/xt_mark.h
2 include/linux/netfilter_ipv4/ipt_connmark.h
2 include/linux/netfilter_ipv4/ipt_dscp.h
2 include/linux/netfilter_ipv4/ipt_ecn.h
2 include/linux/netfilter_ipv4/ipt_mark.h
2 include/linux/netfilter_ipv4/ipt_tcpmss.h
2 include/linux/netfilter_ipv4/ipt_tos.h
2 include/linux/netfilter_ipv4/ipt_ttl.h
2 include/linux/netfilter_ipv6/ip6t_hl.h
2 include/linux/netfilter_ipv6/ip6t_mark.h
2 net/ipv4/netfilter/ipt_ecn.c
2 net/ipv4/netfilter/ipt_tos.c
2 net/ipv4/netfilter/ipt_ttl.c
2 net/ipv6/netfilter/ip6t_hl.c
2 net/netfilter/xt_connmark.c
2 net/netfilter/xt_dscp.c
2 net/netfilter/xt_mark.c
next prev parent reply other threads:[~2006-12-07 1:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-06 6:49 how to revert changes in working tree? Liu Yubao
2006-12-06 8:43 ` Alex Riesen
2006-12-06 9:57 ` Liu Yubao
2006-12-06 10:20 ` Alex Riesen
2006-12-06 11:14 ` Liu Yubao
2006-12-06 12:30 ` Alex Riesen
2006-12-06 12:52 ` Jakub Narebski
2006-12-06 18:13 ` Shawn Pearce
2006-12-07 1:42 ` Liu Yubao [this message]
2006-12-07 7:15 ` Juergen Ruehle
2006-12-06 10:20 ` Jakub Narebski
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45777197.50805@gmail.com \
--to=yubao.liu@gmail.com \
--cc=git@vger.kernel.org \
--cc=raa.lkml@gmail.com \
--cc=spearce@spearce.org \
/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.
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 NNTP newsgroup(s).