On Tue, Jan 18, 2022 at 1:02 PM SZEDER Gábor <szeder.dev@xxxxxxxxx> wrote: > > On Mon, Jan 17, 2022 at 10:14:58AM -0800, Elijah Newren wrote: > > the > > documentation never explicitly states files are acceptable to > > sparse-checkout {set,add}. It always mentions "directories" and > > "patterns". > > The "Full Pattern Set" section of the manpage does in fact explicitly > states that files are supported. Not sure it matters since Junio has stated his position pretty strongly, making it irrelevant at this point, but.... I'm not sure I'm following you. Is this the quote you're referring to? """ While $GIT_DIR/info/sparse-checkout is usually used to specify what files are included, """ If so, /foo[A-M]*/pref?x_*.c could be an entry in the file "used to specify what files are included", but it's not a file. The two example lines immediately following aren't filenames either (though the '!'-prefixed line is close). Or are you referring to something else?