{"thread":{"id":"10768","subject":"linux-2.6 clone with CygWin git","startedAt":"2007-11-09T14:29:07Z","lastAt":"2007-11-10T09:50:23Z","messageCount":7,"participants":["Medve Emilian","Andreas Ericsson","Simon Sasburg","David Brown","Pascal Obry","Brian Dessent"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"59054","messageId":"598D5675D34BE349929AF5EDE9B03E270174D8A2@az33exm24.fsl.freescale.net","threadId":"10768","inReplyTo":null,"subject":"linux-2.6 clone with CygWin git","fromName":"Medve Emilian","fromEmail":"emilian.medve@freescale.com","sentAt":"2007-11-09T14:29:07Z","receivedAt":"2007-11-09T14:29:07Z","isPatch":false,"sender":{"key":"emilian.medve@freescale.com","avatar":null},"body":"Hello,\n\n\nI noticed that something might not be right with my CygWin git (latest\nCygWin relevant build packages + a few days old git build from the next\n& master branches). When I clone, say,  Linus' tree over the native git\nprotocol everything goes fine but a git-status shows this:\n\n$ git-status\n# On branch master\n# Changed but not updated:\n#   (use \"git add <file>...\" to update what will be committed)\n#\n#       modified:   include/linux/netfilter/xt_CONNMARK.h\n#       modified:   include/linux/netfilter/xt_DSCP.h\n#       modified:   include/linux/netfilter/xt_MARK.h\n#       modified:   include/linux/netfilter/xt_TCPMSS.h\n#       modified:   include/linux/netfilter_ipv4/ipt_CONNMARK.h\n#       modified:   include/linux/netfilter_ipv4/ipt_DSCP.h\n#       modified:   include/linux/netfilter_ipv4/ipt_ECN.h\n#       modified:   include/linux/netfilter_ipv4/ipt_MARK.h\n#       modified:   include/linux/netfilter_ipv4/ipt_TCPMSS.h\n#       modified:   include/linux/netfilter_ipv4/ipt_TOS.h\n#       modified:   include/linux/netfilter_ipv4/ipt_TTL.h\n#       modified:   include/linux/netfilter_ipv6/ip6t_HL.h\n#       modified:   include/linux/netfilter_ipv6/ip6t_MARK.h\n#       modified:   net/ipv4/netfilter/ipt_ECN.c\n#       modified:   net/ipv4/netfilter/ipt_TOS.c\n#       modified:   net/ipv4/netfilter/ipt_TTL.c\n#       modified:   net/ipv6/netfilter/ip6t_HL.c\n#       modified:   net/netfilter/xt_CONNMARK.c\n#       modified:   net/netfilter/xt_DSCP.c\n#       modified:   net/netfilter/xt_MARK.c\n#       modified:   net/netfilter/xt_TCPMSS.c\n#\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n\ngit-fsck --strict --full finds no fault in the clone, git-reset --hard\ngoes fine but changes nothing in the output of git-status. Some\nadditional superficial investigation showed that git-diff doesn't even\ncompare my checked out tree against the latest commit. Checkout of\nvarious commits shows the same issue.\n\nCan somebody please double-check this scenario for me just to validate\nthat this happens only due to some particular factors combination on my\nbox?\n\n\nThanks,\nEmil.\n"},{"id":"59060","messageId":"47347625.9040705@op5.se","threadId":"10768","inReplyTo":"598D5675D34BE349929AF5EDE9B03E270174D8A2@az33exm24.fsl.freescale.net","subject":"Re: linux-2.6 clone with CygWin git","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2007-11-09T15:00:53Z","receivedAt":"2007-11-09T15:00:53Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Medve Emilian wrote:\n> Hello,\n> \n> \n> I noticed that something might not be right with my CygWin git (latest\n> CygWin relevant build packages + a few days old git build from the next\n> & master branches). When I clone, say,  Linus' tree over the native git\n> protocol everything goes fine but a git-status shows this:\n> \n> $ git-status\n> # On branch master\n> # Changed but not updated:\n> #   (use \"git add <file>...\" to update what will be committed)\n> #\n> #       modified:   include/linux/netfilter/xt_CONNMARK.h\n> #       modified:   include/linux/netfilter/xt_DSCP.h\n> #       modified:   include/linux/netfilter/xt_MARK.h\n> #       modified:   include/linux/netfilter/xt_TCPMSS.h\n> #       modified:   include/linux/netfilter_ipv4/ipt_CONNMARK.h\n> #       modified:   include/linux/netfilter_ipv4/ipt_DSCP.h\n> #       modified:   include/linux/netfilter_ipv4/ipt_ECN.h\n> #       modified:   include/linux/netfilter_ipv4/ipt_MARK.h\n> #       modified:   include/linux/netfilter_ipv4/ipt_TCPMSS.h\n> #       modified:   include/linux/netfilter_ipv4/ipt_TOS.h\n> #       modified:   include/linux/netfilter_ipv4/ipt_TTL.h\n> #       modified:   include/linux/netfilter_ipv6/ip6t_HL.h\n> #       modified:   include/linux/netfilter_ipv6/ip6t_MARK.h\n> #       modified:   net/ipv4/netfilter/ipt_ECN.c\n> #       modified:   net/ipv4/netfilter/ipt_TOS.c\n> #       modified:   net/ipv4/netfilter/ipt_TTL.c\n> #       modified:   net/ipv6/netfilter/ip6t_HL.c\n> #       modified:   net/netfilter/xt_CONNMARK.c\n> #       modified:   net/netfilter/xt_DSCP.c\n> #       modified:   net/netfilter/xt_MARK.c\n> #       modified:   net/netfilter/xt_TCPMSS.c\n> #\n> no changes added to commit (use \"git add\" and/or \"git commit -a\")\n> \n> git-fsck --strict --full finds no fault in the clone, git-reset --hard\n> goes fine but changes nothing in the output of git-status. Some\n> additional superficial investigation showed that git-diff doesn't even\n> compare my checked out tree against the latest commit. Checkout of\n> various commits shows the same issue.\n> \n> Can somebody please double-check this scenario for me just to validate\n> that this happens only due to some particular factors combination on my\n> box?\n> \n\nYour filesystem is not case sensitive and there are files with identical\nnames (apart from the case thing) in the Linux kernel repo.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"},{"id":"59062","messageId":"981e6de60711090702y2132a5eq889ac1b62993adce@mail.gmail.com","threadId":"10768","inReplyTo":"598D5675D34BE349929AF5EDE9B03E270174D8A2@az33exm24.fsl.freescale.net","subject":"Re: linux-2.6 clone with CygWin git","fromName":"Simon Sasburg","fromEmail":"simon.sasburg@gmail.com","sentAt":"2007-11-09T15:02:21Z","receivedAt":"2007-11-09T15:02:21Z","isPatch":false,"sender":{"key":"simon.sasburg@gmail.com","avatar":null},"body":"This is not a problem with git.\n\nThe kernel tree contains files which only differ from other files by case.\n\nIf on a case-insensitive filesystem this will cause problems like the\nones you noticed.\n\nOn Nov 9, 2007 3:29 PM, Medve Emilian <Emilian.Medve@freescale.com> wrote:\n> Hello,\n>\n>\n> I noticed that something might not be right with my CygWin git (latest\n> CygWin relevant build packages + a few days old git build from the next\n> & master branches). When I clone, say,  Linus' tree over the native git\n> protocol everything goes fine but a git-status shows this:\n>\n> $ git-status\n> # On branch master\n> # Changed but not updated:\n> #   (use \"git add <file>...\" to update what will be committed)\n> #\n> #       modified:   include/linux/netfilter/xt_CONNMARK.h\n> #       modified:   include/linux/netfilter/xt_DSCP.h\n> #       modified:   include/linux/netfilter/xt_MARK.h\n> #       modified:   include/linux/netfilter/xt_TCPMSS.h\n> #       modified:   include/linux/netfilter_ipv4/ipt_CONNMARK.h\n> #       modified:   include/linux/netfilter_ipv4/ipt_DSCP.h\n> #       modified:   include/linux/netfilter_ipv4/ipt_ECN.h\n> #       modified:   include/linux/netfilter_ipv4/ipt_MARK.h\n> #       modified:   include/linux/netfilter_ipv4/ipt_TCPMSS.h\n> #       modified:   include/linux/netfilter_ipv4/ipt_TOS.h\n> #       modified:   include/linux/netfilter_ipv4/ipt_TTL.h\n> #       modified:   include/linux/netfilter_ipv6/ip6t_HL.h\n> #       modified:   include/linux/netfilter_ipv6/ip6t_MARK.h\n> #       modified:   net/ipv4/netfilter/ipt_ECN.c\n> #       modified:   net/ipv4/netfilter/ipt_TOS.c\n> #       modified:   net/ipv4/netfilter/ipt_TTL.c\n> #       modified:   net/ipv6/netfilter/ip6t_HL.c\n> #       modified:   net/netfilter/xt_CONNMARK.c\n> #       modified:   net/netfilter/xt_DSCP.c\n> #       modified:   net/netfilter/xt_MARK.c\n> #       modified:   net/netfilter/xt_TCPMSS.c\n> #\n> no changes added to commit (use \"git add\" and/or \"git commit -a\")\n>\n> git-fsck --strict --full finds no fault in the clone, git-reset --hard\n> goes fine but changes nothing in the output of git-status. Some\n> additional superficial investigation showed that git-diff doesn't even\n> compare my checked out tree against the latest commit. Checkout of\n> various commits shows the same issue.\n>\n> Can somebody please double-check this scenario for me just to validate\n> that this happens only due to some particular factors combination on my\n> box?\n>\n>\n> Thanks,\n> Emil.\n> -\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>\n"},{"id":"59063","messageId":"20071109150306.GA20531@old.davidb.org","threadId":"10768","inReplyTo":"598D5675D34BE349929AF5EDE9B03E270174D8A2@az33exm24.fsl.freescale.net","subject":"Re: linux-2.6 clone with CygWin git","fromName":"David Brown","fromEmail":"git@davidb.org","sentAt":"2007-11-09T15:03:06Z","receivedAt":"2007-11-09T15:03:06Z","isPatch":false,"sender":{"key":"git@davidb.org","avatar":"https://gravatar.com/avatar/94c86a2938470a74c2eac5e2b69afc0871f79a660295c02219597aba8cb101c1?d=mp&s=160"},"body":"On Fri, Nov 09, 2007 at 07:29:07AM -0700, Medve Emilian wrote:\n\n>#       modified:   include/linux/netfilter/xt_CONNMARK.h\n>\n>Can somebody please double-check this scenario for me just to validate\n>that this happens only due to some particular factors combination on my\n>box?\n\nIt's because of the case-insensitive nature of the filesystem.  The kernel\ncontains both an xt_connmark.h and an xt_CONNMARK.h file, that are\ndifferent.  But only one exists on Windows, so git sees the first one it\nwrote as having been modified.\n\nDavid\n"},{"id":"59086","messageId":"473495E1.3080305@obry.net","threadId":"10768","inReplyTo":"20071109150306.GA20531@old.davidb.org","subject":"Re: linux-2.6 clone with CygWin git","fromName":"Pascal Obry","fromEmail":"pascal@obry.net","sentAt":"2007-11-09T17:16:17Z","receivedAt":"2007-11-09T17:16:17Z","isPatch":false,"sender":{"key":"pascal@obry.net","avatar":"https://avatars.githubusercontent.com/u/467069?v=4"},"body":"David Brown a écrit :\n> It's because of the case-insensitive nature of the filesystem.  The kernel\n> contains both an xt_connmark.h and an xt_CONNMARK.h file, that are\n> different.  But only one exists on Windows, so git sees the first one it\n> wrote as having been modified.\n\nProbably not something for the list... but if you ask me this is just\nbad practice anyway. Casing has no semantic, it is nonsense to have two\nfiles with the same name with different casing!\n\nPascal.\n\n-- \n\n--|------------------------------------------------------\n--| Pascal Obry                           Team-Ada Member\n--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE\n--|------------------------------------------------------\n--|              http://www.obry.net\n--| \"The best way to travel is by means of imagination\"\n--|\n--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595\n"},{"id":"59125","messageId":"4734D025.B08B725B@dessent.net","threadId":"10768","inReplyTo":"598D5675D34BE349929AF5EDE9B03E270174D8A2@az33exm24.fsl.freescale.net","subject":"Re: linux-2.6 clone with CygWin git","fromName":"Brian Dessent","fromEmail":"brian@dessent.net","sentAt":"2007-11-09T21:24:53Z","receivedAt":"2007-11-09T21:24:53Z","isPatch":false,"sender":{"key":"brian@dessent.net","avatar":null},"body":"\n[ Please note, it's spelled \"Cygwin\" not \"CygWin\". ]\n\nMedve Emilian wrote:\n\n> Can somebody please double-check this scenario for me just to validate\n> that this happens only due to some particular factors combination on my\n> box?\n\nAs others have pointed out, this is not a git issue -- you'd have run\ninto the same problem with a simple tarball of the kernel source because\nof the filesystem case insensitivity.  Cygwin provides managed mounts to\nwork around this Win32 limitation, at the cost of non-Cygwin apps seeing\nuglified filenames and a decreased effective maximum path length due to\nthe mangling.\n\nBrian\n"},{"id":"59187","messageId":"47357EDF.2000708@op5.se","threadId":"10768","inReplyTo":"473495E1.3080305@obry.net","subject":"Re: linux-2.6 clone with CygWin git","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2007-11-10T09:50:23Z","receivedAt":"2007-11-10T09:50:23Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Pascal Obry wrote:\n> David Brown a écrit :\n>> It's because of the case-insensitive nature of the filesystem.  The kernel\n>> contains both an xt_connmark.h and an xt_CONNMARK.h file, that are\n>> different.  But only one exists on Windows, so git sees the first one it\n>> wrote as having been modified.\n> \n> Probably not something for the list... but if you ask me this is just\n> bad practice anyway. Casing has no semantic, it is nonsense to have two\n> files with the same name with different casing!\n> \n\nYou're right, it's not something for this list. Try arguing your case at\nthe linux kernel mailing list.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"}]}