{"thread":{"id":"22383","subject":"git status showing phantom modifications","startedAt":"2010-01-25T10:41:05Z","lastAt":"2010-01-28T08:45:54Z","messageCount":7,"participants":["Michael Ludwig","Tay Ray Chuan","Johannes Sixt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"132587","messageId":"9B3C1167-7667-4B1F-BEE5-F47FE89F8692@xing.com","threadId":"22383","inReplyTo":null,"subject":"git status showing phantom modifications","fromName":"Michael Ludwig","fromEmail":"michael.ludwig@xing.com","sentAt":"2010-01-25T10:41:05Z","receivedAt":"2010-01-25T10:41:05Z","isPatch":false,"sender":{"key":"michael.ludwig@xing.com","avatar":null},"body":"This is on Cygwin, package git-1.6.4.2-1 [1]:\n\nmichael@wladimir:/cygdrive/m/REPOS6.TECH.git :-) git st\n# On branch master\nnothing to commit (working directory clean)\n\nNote: This repository is a fresh conversion from a subversion repository.\nAs mentioned, this is Cygwin on XP Home, and the filesystem is NTFS.\n\nmichael@wladimir:/cygdrive/m/REPOS6.TECH.git :-) cd comp\n\nNote: The directory I've cd'd into is not a submodule, just a regular part\nof the working copy.\n\nmichael@wladimir:/cygdrive/m/REPOS6.TECH.git/comp :-) git st\n# On branch master\n# Changed but not updated:\n#   (use \"git add <file>...\" to update what will be committed)\n#   (use \"git checkout -- <file>...\" to discard changes in working directory)\n#\n#       modified:   mw/wsdl-version.txt\n#       modified:   net/httpsrvr/iis6.wodo\n#       ... and about 100 more of that ...\n\nI would expect the output of git status to be consistent regardless of my\nposition in the working directory.\n\nGit bug, Cygwin issue, or some oversight of mine?\n\n[1] http://cygwin.com/packages/git/\n-- \nMichael.Ludwig (#) XING.com\n"},{"id":"132591","messageId":"be6fef0d1001250303p2c12381ao7d3a8a1d48eebb56@mail.gmail.com","threadId":"22383","inReplyTo":"9B3C1167-7667-4B1F-BEE5-F47FE89F8692@xing.com","subject":"Re: git status showing phantom modifications","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2010-01-25T11:03:04Z","receivedAt":"2010-01-25T11:03:04Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nOn Mon, Jan 25, 2010 at 6:41 PM, Michael Ludwig <michael.ludwig@xing.com> wrote:\n> michael@wladimir:/cygdrive/m/REPOS6.TECH.git/comp :-) git st\n> # On branch master\n> # Changed but not updated:\n> #   (use \"git add <file>...\" to update what will be committed)\n> #   (use \"git checkout -- <file>...\" to discard changes in working directory)\n> #\n> #       modified:   mw/wsdl-version.txt\n> #       modified:   net/httpsrvr/iis6.wodo\n> #       ... and about 100 more of that ...\n\ntry running git diff. I suspect the changes are to filemodes. What\ndoes your git config look like regarding this (particularly\ncore.fileMode)?\n\n-- \nCheers,\nRay Chuan\n"},{"id":"132596","messageId":"4017EB11-4B29-4599-B19A-91BC39632BBF@xing.com","threadId":"22383","inReplyTo":"be6fef0d1001250303p2c12381ao7d3a8a1d48eebb56@mail.gmail.com","subject":"Re: git status showing phantom modifications","fromName":"Michael Ludwig","fromEmail":"michael.ludwig@xing.com","sentAt":"2010-01-25T11:43:45Z","receivedAt":"2010-01-25T11:43:45Z","isPatch":false,"sender":{"key":"michael.ludwig@xing.com","avatar":null},"body":"Am 25.01.2010 um 12:03 schrieb Tay Ray Chuan:\n> On Mon, Jan 25, 2010 at 6:41 PM, Michael Ludwig <michael.ludwig@xing.com> wrote:\n>> michael@wladimir:/cygdrive/m/REPOS6.TECH.git/comp :-) git st\n>> # On branch master\n>> # Changed but not updated:\n>> #   (use \"git add <file>...\" to update what will be committed)\n>> #   (use \"git checkout -- <file>...\" to discard changes in working directory)\n>> #\n>> #       modified:   mw/wsdl-version.txt\n>> #       modified:   net/httpsrvr/iis6.wodo\n>> #       ... and about 100 more of that ...\n> \n> try running git diff. I suspect the changes are to filemodes. What\n> does your git config look like regarding this (particularly\n> core.fileMode)?\n\nRunning git diff informed me there were no changes to content, which is\nwhat I forgot to add to the description of the problem.\n\nUnfortunately, right now I'm not at the system where this occurred, so\nI can't say what git config looks like. I did not, however, make any\ncustomization other than user.email and alias.st and some others.\n\nReading up about core.fileMode in git-config(1), I think you've pointed\nme to the solution. I should probably just set it to false. If that doesn't\nsolve the issue, I'll report back.\n\nGoogle also found me an old patch that might be related to the problem:\n\n[PATCH] Force core.filemode to false on Cygwin.\nhttp://marc.info/?l=git&m=116754085018507&w=2\n\n-- \nMichael.Ludwig (#) XING.com\n"},{"id":"132664","messageId":"59B5C4C4-6E95-4BAA-9351-B88B6309E022@xing.com","threadId":"22383","inReplyTo":"4017EB11-4B29-4599-B19A-91BC39632BBF@xing.com","subject":"Re: git status showing phantom modifications","fromName":"Michael Ludwig","fromEmail":"michael.ludwig@xing.com","sentAt":"2010-01-26T09:14:31Z","receivedAt":"2010-01-26T09:14:31Z","isPatch":false,"sender":{"key":"michael.ludwig@xing.com","avatar":null},"body":"Am 25.01.2010 um 12:43 schrieb Michael Ludwig:\n\n> Reading up about core.fileMode in git-config(1), I think you've pointed\n> me to the solution. I should probably just set it to false. If that doesn't\n> solve the issue, I'll report back.\n\nBack with more info:\n\ngit version 1.6.4.2\n\nBefore adding any core.filemode setting to ~/.gitconfig or .git/config:\n\nmichael@wladimir:/cygdrive/m/REPOS6.TECH.git/comp :-) git config -l\nuser.name=Michael Ludwig\nuser.email=...\ncore.repositoryformatversion=0\ncore.filemode=true                      <= filemode already present\ncore.bare=false\ncore.logallrefupdates=true\ncore.ignorecase=true\ncore.autocrlf=false\nsvn-remote.svn.ignore-paths=^(some|paths)\nsvn-remote.svn.url=svn://localhost\nsvn-remote.svn.fetch=:refs/remotes/git-svn\nsvn.authorsfile=authors.txt\n\nMy git status output after cd to subdir shows many files \"modified\". But\nthey aren't! Edited ~/.gitconfig to include core.filemode = true [sic].\nHere's the diff for the git config output:\n\n--- /home/michael/a     2010-01-25 20:36:53.140625000 +0100\n+++ /home/michael/b     2010-01-25 20:37:01.421875000 +0100\n@@ -4,6 +4,7 @@\nalias.ci=checkin\nalias.co=checkout\nalias.br=branch\n+core.filemode=true\ncore.repositoryformatversion=0\ncore.filemode=true\ncore.bare=false\n\nWe're seeing core.filemode appear *twice*. Why that?\n\nmichael@wladimir:/cygdrive/m/REPOS6.TECH.git/comp :-) git st\n# On branch master\nnothing to commit (working directory clean)\n\nSo it seems adding core.filemode = true has fixed the issue, or at least\ncovered the symptoms. Adding core.filemode = false did not cause the\nphantom modifications to disappear. Note that from reading git-config(1),\nI had rather assumed this latter setting to have the desired effect.\n\nAnd something seems to be wrong here. Why are modifications flagged when\ndoing git status from a subdir but not from the topdir?\n\n-- \nMichael.Ludwig (#) XING.com\n"},{"id":"132745","messageId":"be6fef0d1001262114r137ba8ddi60a3a3468950c5ce@mail.gmail.com","threadId":"22383","inReplyTo":"59B5C4C4-6E95-4BAA-9351-B88B6309E022@xing.com","subject":"Re: git status showing phantom modifications","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2010-01-27T05:14:39Z","receivedAt":"2010-01-27T05:14:39Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi Johannes,\n\ndo you happen to have any clue on this?\n\n-- \nCheers,\nRay Chuan\n\n\nOn Tue, Jan 26, 2010 at 5:14 PM, Michael Ludwig <michael.ludwig@xing.com> wrote:\n> Am 25.01.2010 um 12:43 schrieb Michael Ludwig:\n>\n>> Reading up about core.fileMode in git-config(1), I think you've pointed\n>> me to the solution. I should probably just set it to false. If that doesn't\n>> solve the issue, I'll report back.\n>\n> Back with more info:\n>\n> git version 1.6.4.2\n>\n> Before adding any core.filemode setting to ~/.gitconfig or .git/config:\n>\n> michael@wladimir:/cygdrive/m/REPOS6.TECH.git/comp :-) git config -l\n> user.name=Michael Ludwig\n> user.email=...\n> core.repositoryformatversion=0\n> core.filemode=true                      <= filemode already present\n> core.bare=false\n> core.logallrefupdates=true\n> core.ignorecase=true\n> core.autocrlf=false\n> svn-remote.svn.ignore-paths=^(some|paths)\n> svn-remote.svn.url=svn://localhost\n> svn-remote.svn.fetch=:refs/remotes/git-svn\n> svn.authorsfile=authors.txt\n>\n> My git status output after cd to subdir shows many files \"modified\". But\n> they aren't! Edited ~/.gitconfig to include core.filemode = true [sic].\n> Here's the diff for the git config output:\n>\n> --- /home/michael/a     2010-01-25 20:36:53.140625000 +0100\n> +++ /home/michael/b     2010-01-25 20:37:01.421875000 +0100\n> @@ -4,6 +4,7 @@\n> alias.ci=checkin\n> alias.co=checkout\n> alias.br=branch\n> +core.filemode=true\n> core.repositoryformatversion=0\n> core.filemode=true\n> core.bare=false\n>\n> We're seeing core.filemode appear *twice*. Why that?\n>\n> michael@wladimir:/cygdrive/m/REPOS6.TECH.git/comp :-) git st\n> # On branch master\n> nothing to commit (working directory clean)\n>\n> So it seems adding core.filemode = true has fixed the issue, or at least\n> covered the symptoms. Adding core.filemode = false did not cause the\n> phantom modifications to disappear. Note that from reading git-config(1),\n> I had rather assumed this latter setting to have the desired effect.\n>\n> And something seems to be wrong here. Why are modifications flagged when\n> doing git status from a subdir but not from the topdir?\n>\n> --\n> Michael.Ludwig (#) XING.com\n>\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":"132749","messageId":"4B5FE925.4000300@viscovery.net","threadId":"22383","inReplyTo":"be6fef0d1001262114r137ba8ddi60a3a3468950c5ce@mail.gmail.com","subject":"Re: git status showing phantom modifications","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2010-01-27T07:20:05Z","receivedAt":"2010-01-27T07:20:05Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Please do not top-post, particularly not when you place the meat of the\nmessage after a \"-- \" marker; There's *no way* to force Thunderbird to\ninclude the text below it in the reply.\n\nTay Ray Chuan schrieb:\n> do you happen to have any clue on this?\n\n\nSorry, no. One more thing to try is:\n\n  core.ignorecygwinfstricks = false\n\nThis turns off some stat() optimizations on Cygwin.\n\n-- Hannes\n"},{"id":"132866","messageId":"707C3CA1-8016-411A-AB98-5BAC15E81024@xing.com","threadId":"22383","inReplyTo":"4B5FE925.4000300@viscovery.net","subject":"Re: git status showing phantom modifications","fromName":"Michael Ludwig","fromEmail":"michael.ludwig@xing.com","sentAt":"2010-01-28T08:45:54Z","receivedAt":"2010-01-28T08:45:54Z","isPatch":false,"sender":{"key":"michael.ludwig@xing.com","avatar":null},"body":"Am 27.01.2010 um 08:20 schrieb Johannes Sixt:\n\n> One more thing to try is:\n> \n>  core.ignorecygwinfstricks = false\n> \n> This turns off some stat() optimizations on Cygwin.\n\n\nThe above setting causes the phantom modifications to disappear,\nregardless of an *explicit* setting of core.filemode as reported\nin one of my previous mails on this thread.\n\nSo thanks, it works okay for me. Still, it's not clear what's\nhappening.\n-- \nMichael.Ludwig (#) XING.com\n"}]}