{"thread":{"id":"44951","subject":"sparse checkout : ignore paths","startedAt":"2017-01-23T11:47:59Z","lastAt":"2017-01-23T15:14:09Z","messageCount":2,"participants":["Tushar Kapila","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"309972","messageId":"CALNyQkyy_prP60kp_DpMzG9+affqPW0-z6F81R4OSgHg0QFc+g@mail.gmail.com","threadId":"44951","inReplyTo":null,"subject":"sparse checkout : ignore paths","fromName":"Tushar Kapila","fromEmail":"tushar.kapila@gmail.com","sentAt":"2017-01-23T11:45:56Z","receivedAt":"2017-01-23T11:47:59Z","isPatch":false,"sender":{"key":"tushar.kapila@gmail.com","avatar":null},"body":"When we clone/ pull with : config core.sparsecheckout true\n\nWe can specify paths to include. Would be good to explicitly specify\npaths to exclude too. So I can include want/\nbut exclude want/bin/\n\nSimilar to .git/info/sparse-checkout can we have a\n.git/info/sparse-ignore-checkout optional file?\n\nLogic would be to see if a path matches that is in\n.git/info/sparse-checkout then see if its flagged in\n.git/info/sparse-ignore-checkout , do not download if blocked in\n.git/info/sparse-ignore-checkout. If the file does not exist, then\nnothing ignored.\n\nRegards,\nTushar Kapila\n"},{"id":"309978","messageId":"alpine.DEB.2.20.1701231613210.3469@virtualbox","threadId":"44951","inReplyTo":"CALNyQkyy_prP60kp_DpMzG9+affqPW0-z6F81R4OSgHg0QFc+g@mail.gmail.com","subject":"Re: sparse checkout : ignore paths","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2017-01-23T15:13:52Z","receivedAt":"2017-01-23T15:14:09Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Mon, 23 Jan 2017, Tushar Kapila wrote:\n\n> When we clone/ pull with : config core.sparsecheckout true\n> \n> We can specify paths to include. Would be good to explicitly specify\n> paths to exclude too.\n\nThat is already possible by using \"negative patterns\", i.e. patterns\npreceded by an exclamation point.\n\nCiao,\nJohannes\n"}]}