jj/docs
Yuya Nishihara 4474577ceb fileset: parse cwd/root-glob patterns
Mercurial appears to resolve cwd-relative path first, so "glob:*.c" could be
parsed as "**/*.c" if cwd was literally "**". It wouldn't practically matter,
but isn't correct. Instead, jj's parser first splits glob into literal part
and pattern. That's mainly because we want to parse the user input texts into
type-safe objects, and (RepoPathBuf, glob::Pattern) pairs are the simplest
ones. The current parser can't handle patterns like "foo/*/.." (= "foo" ?),
and errors out. I believe this restriction is acceptable.

Unlike literal paths, the 'glob:' pattern anchors to the whole file path. I
don't think "prefix"-matching glob is useful, and making it the default would
be rather confusing.
2024-04-18 11:09:54 +09:00
..
design
technical
branches.md
cli-reference.md
code-of-conduct.md
config.md New jj debug watchman status command 2024-04-11 10:55:59 -07:00
config.toml
conflicts.md politics: delete references to Pijul 2024-04-14 13:16:08 -07:00
contributing.md
FAQ.md
filesets.md fileset: parse cwd/root-glob patterns 2024-04-18 11:09:54 +09:00
git-comparison.md
git-compatibility.md
github.md
glossary.md
index.md
install-and-setup.md
operation-log.md
related-work.md politics: delete references to Pijul 2024-04-14 13:16:08 -07:00
revsets.md revset: add support for file(kind:pattern) syntax 2024-04-07 19:43:29 +09:00
sapling-comparison.md
templates.md templater: Add operation.snapshot() boolean 2024-04-07 19:46:52 +03:00
testimonials.md
tutorial.md
windows.md
working-copy.md