{"thread":{"id":"41147","subject":"Behavior change in 2.7.0: With core.sparseCheckout some files have the skip-worktree bit set after a checkout.","startedAt":"2016-01-08T10:35:23Z","lastAt":"2016-01-08T10:49:29Z","messageCount":2,"participants":["Micha Wiedenmann","Duy Nguyen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"275527","messageId":"trinity-5caa2985-5cf1-453b-9a9e-bcce057f8615-1452249323061@3capp-gmx-bs51","threadId":"41147","inReplyTo":null,"subject":"Behavior change in 2.7.0: With core.sparseCheckout some files have the skip-worktree bit set after a checkout.","fromName":"Micha Wiedenmann","fromEmail":"mw-u2@gmx.de","sentAt":"2016-01-08T10:35:23Z","receivedAt":"2016-01-08T10:35:23Z","isPatch":false,"sender":{"key":"mw-u2@gmx.de","avatar":null},"body":"Hi,\n \nI want to report a change in behavior Git 2.7.0. With `core.sparseCheckout` set to true, `git checkout` results in some files with a set skip-worktree bit, which was not the case in 2.6.4. (I am using Git for Windows, but assume this is a Git issue, which is why I report it to this list.)\n \nPlease see my test case:\n \n#!/bin/bash\ngit --version\n# git version 2.7.0.windows.1\nmkdir test-case\ncd test-case\ngit init\nmkdir keep\necho keep > keep/keep.txt\necho foo > foo.txt\ngit add -A\ngit commit -m initial\ngit config core.sparseCheckout true\ncat > .git/info/sparse-checkout <<EOF\n/*\n!/keep/tags/\nEOF\n\ngit checkout\ngit ls-files -v\n# H foo.txt\n# S keep/keep.txt\n# $ git --version\n\n# git version 2.6.4.windows.1\n# $ git checkout\n# $ git ls-files -v\n# # H foo.txt\n# # H keep/keep.txt\n# (Note that the result of keep/keep.txt is different)\n\ngit read-tree @\ngit ls-files -v\n# H foo.txt\n# H keep/keep.txt\n\nI noticed this, when all my tracked files where suddenly missing from the working directory.\n\nHope that helps,\nMicha Wiedenmann\n \n"},{"id":"275529","messageId":"CACsJy8A7LR0xmwuqCKxxiiGeApywYb+_Zxcp=PG=sHHfpeBZRg@mail.gmail.com","threadId":"41147","inReplyTo":"trinity-5caa2985-5cf1-453b-9a9e-bcce057f8615-1452249323061@3capp-gmx-bs51","subject":"Re: Behavior change in 2.7.0: With core.sparseCheckout some files have the skip-worktree bit set after a checkout.","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2016-01-08T10:49:29Z","receivedAt":"2016-01-08T10:49:29Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Fri, Jan 8, 2016 at 5:35 PM, Micha Wiedenmann <mw-u2@gmx.de> wrote:\n> Hi,\n>\n> I want to report a change in behavior Git 2.7.0. With `core.sparseCheckout` set to true, `git checkout` results in some files with a set skip-worktree bit, which was not the case in 2.6.4. (I am using Git for Windows, but assume this is a Git issue, which is why I report it to this list.)\n\nI might know the reason (and I'm quickly becoming king of\nregressions). Checking...\n-- \nDuy\n"}]}