{"thread":{"id":"13065","subject":"possible regression (or me abusing git) in v1.5.5","startedAt":"2008-04-11T19:21:41Z","lastAt":"2008-04-11T21:06:28Z","messageCount":2,"participants":["tarmigan+git@gmail.com","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"74137","messageId":"905315640804111221k53dd7063sae5710ed690114f0@mail.gmail.com","threadId":"13065","inReplyTo":null,"subject":"possible regression (or me abusing git) in v1.5.5","fromName":"","fromEmail":"tarmigan+git@gmail.com","sentAt":"2008-04-11T19:21:41Z","receivedAt":"2008-04-11T19:21:41Z","isPatch":false,"sender":{"key":"tarmigan+git@gmail.com","avatar":null},"body":"Hello,\n\nAfter upgrading to v1.5.5, I noticed a change in the way that git\ntreats symbolic links.\n\nGit will follow symbolic links to directories when they were added as follows\n\n$ git init\n$ mkdir foo\n$ touch foo/bar\n$ ln -s foo foo1\n$ git add foo1/\n#               Note the trailing slash above.\n\nIn v1.5.5 (but not v1.5.4.5 and earlier),\n$ git add -u\nwill remove foo1/bar from the index.\n\nI have bisected this down to f58dbf (diff-files: careful when\ninspecting work tree items).\n\nThe ability for git to follow links (instead of recording them) was a\nuseful feature for me, but I may have been abusing this \"feature\".  If\nthat is the consensus, it might make sense to have\n$ git add foo1\nand\n$ git add foo1/\n behave the same way?\n\nThanks,\nTarmigan\n"},{"id":"74146","messageId":"7vbq4grtij.fsf@gitster.siamese.dyndns.org","threadId":"13065","inReplyTo":"905315640804111221k53dd7063sae5710ed690114f0@mail.gmail.com","subject":"Re: possible regression (or me abusing git) in v1.5.5","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-04-11T21:06:28Z","receivedAt":"2008-04-11T21:06:28Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"tarmigan+git@gmail.com writes:\n\n> After upgrading to v1.5.5, I noticed a change in the way that git\n> treats symbolic links.\n>\n> Git will follow symbolic links to directories when they were added as follows\n>\n> $ git init\n> $ mkdir foo\n> $ touch foo/bar\n> $ ln -s foo foo1\n> $ git add foo1/\n\nIn this step \"git add\" adds \"foo1/bar\", which is a bug that is shared\nbetween 1.5.5 and previous versions.\n\nRecent \"git add -u\" after that was taught to notice this bogosity (it\nactually is git-diff-* family that was fixed), and fixes it.\n"}]}