sapling/tests/test-gitignore.t
Jun Wu d0886b9b94 gitignore: add a config option
Summary:
gitignore could have performance issues stating .gitignore files everywhere.
That happens if watchman returns O(working copy) files. Add a config to
disable it as we're finding solutions.

Reviewed By: DurhamG

Differential Revision: D7482499

fbshipit-source-id: 4c9247b0318bf034c8e9af4b74c21110cc598714
2018-04-13 21:51:45 -07:00

25 lines
359 B
Raku

$ newrepo
$ setconfig ui.gitignore=1
$ cat > .gitignore << EOF
> *.tmp
> build/
> EOF
$ mkdir build exp
$ cat > build/.gitignore << EOF
> !*
> EOF
$ cat > exp/.gitignore << EOF
> !i.tmp
> EOF
$ touch build/libfoo.so t.tmp Makefile exp/x.tmp exp/i.tmp
$ hg status
? .gitignore
? Makefile
? exp/.gitignore
? exp/i.tmp