threads / discuss / 44951

sparse checkout : ignore paths

Subject: sparse checkout : ignore paths

## tl;dr

2 messages between Jan 23, 2017 and Jan 23, 2017.

replies: 1people: 2as markdown or json

Tushar Kapila· Jan 23, 2017, 11:45 UTC · lore
When we clone/ pull with : config core.sparsecheckout true

We can specify paths to include. Would be good to explicitly specify paths to exclude too. So I can include want/ but exclude want/bin/

Similar to .git/info/sparse-checkout can we have a .git/info/sparse-ignore-checkout optional file?

Logic would be to see if a path matches that is in .git/info/sparse-checkout then see if its flagged in .git/info/sparse-ignore-checkout , do not download if blocked in .git/info/sparse-ignore-checkout. If the file does not exist, then nothing ignored.

Regards, Tushar Kapila

Johannes Schindelin· Jan 23, 2017, 15:13 UTC · re: Tushar Kapila · lore

Re: sparse checkout : ignore paths

Hi,
On Mon, 23 Jan 2017, Tushar Kapila wrote:
> When we clone/ pull with : config core.sparsecheckout true
> 
> We can specify paths to include. Would be good to explicitly specify
> paths to exclude too.

That is already possible by using "negative patterns", i.e. patterns preceded by an exclamation point.

Ciao, Johannes

← back to recent threads