{"thread":{"id":"15101","subject":"git-diff not coping with symlinks tonight","startedAt":"2008-08-20T03:54:42Z","lastAt":"2008-08-20T03:54:42Z","messageCount":1,"participants":["Jan Engelhardt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"87792","messageId":"alpine.LNX.1.10.0808192351090.5691@fbirervta.pbzchgretzou.qr","threadId":"15101","inReplyTo":null,"subject":"git-diff not coping with symlinks tonight","fromName":"Jan Engelhardt","fromEmail":"jengelh@medozas.de","sentAt":"2008-08-20T03:54:42Z","receivedAt":"2008-08-20T03:54:42Z","isPatch":false,"sender":{"key":"jengelh@medozas.de","avatar":null},"body":"Hi,\n\n\nOnce upon a git-status, a file was deemed changed:\n\n23:50 kaven:~/Coding/pam_mount > git st\n# On branch ofl\n# Changed but not updated:\n#   (use \"git add <file>...\" to update what will be committed)\n#\n#       modified:   src/ofl-lib-nlt.c\n#\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n\nSo why did the symlink change we might ask:\n\n23:50 kaven:~/Coding/pam_mount > strace -fe readlink git diff\nProcess 13185 attached (waiting for parent)\nProcess 13185 resumed (parent 13184 ready)\n[pid 13185] readlink(\"src/ofl-lib-nlt.c\", \"ofl-lib.c\", 25) = 9\nProcess 13185 detached\n--- SIGCHLD (Child exited) @ 0 (0) ---\nerror: readlink(\"src/ofl-lib-nlt.c\"): No such file or directory\nfatal: cannot hash src/ofl-lib-nlt.c\n\nThat's about it - /src/ofl-lib.c does exist, and hence the link is \nvalid.\n\nObserved on git 1.5.6.4.\nEven a hard reset won't change anything.\n\n23:52 kaven:~/Coding/pam_mount > git reset --hard\nHEAD is now at 44a089b kill on logout support (unfinished)\n23:53 kaven:~/Coding/pam_mount > git st\n# On branch ofl\n# Changed but not updated:\n#   (use \"git add <file>...\" to update what will be committed)\n#\n#       modified:   src/ofl-lib-nlt.c\n#\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n\nStill modified. Any ideas?\n"}]}