mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
d0886b9b94
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
25 lines
359 B
Raku
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
|