Repository navigation
Expand file tree
/
Copy path.gitignore
More file actions
102 lines (92 loc) · 3.64 KB
/
Copy path.gitignore
File metadata and controls
102 lines (92 loc) · 3.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Build directories
#
# 带连字符的变体(build-ssl / build-webapp / build-nopool / build-dbg / build-test)
# 原先**一条规则都不匹配**。它们之所以大多没有出现在 `git status` 里,是因为
# CMake 构建树的内容恰好被下面的 `*.txt` / `*.cmake` / `CMakeFiles/` / `_deps/`
# 兜住了 —— 那是**巧合,不是覆盖**:只要树里出现一个不匹配那些模式的产物
# (.log / .dll / .exe / .obj / .json …),整个目录就会变成未跟踪,
# 一次 `git add -A` 就把它整个吞进去。
#
# 用带尾斜杠的形式(只匹配目录):仓库里有一个**已被跟踪**的文件
# `build-ssl-run.sh`,写成 `build*` 会连它一起匹配上。
build/
build_*/
build-*/
# Portable build-kit scripts are source, not a build tree.
!build-kit/
!build-kit/**
build_noexpand/
build_nopool/
out/
_deps/
_local_*/
Testing/
# 测试临时目录(用例按相对名在当前目录建)
#
# 上传用例按**相对名**建目录(web_app_upload_func.cpp:1838 的
# uvcpp_upload_test_dir、web_app_upload_route_func.cpp:2084 的
# uvcpp_rt_outside_uploads),每跑一次就出现一次,里面留着上一轮没被清掉的
# 残留部件。**不写成带前导斜杠的形式** —— 用例的工作目录可能是仓库根,
# 也可能是构建树(ctest 从哪跑取决于调用方式),锚定死一处就漏另一处。
uvcpp_upload_test_dir/
uvcpp_rt_outside_uploads/
# Development docs / temp
docs/
*.txt
# `*.txt` 会连 CMakeLists.txt 一起吃掉。已经跟踪的那些不受影响(ignore 只作用于
# 未跟踪文件),所以症状很隐蔽:新加的目录里那个 CMakeLists.txt 提交不上去,
# 而本地构建一切正常(文件就在磁盘上)—— examples/CMakeLists.txt 就是这么漏掉
# 一次的。不带斜杠写,任何层级都放行。
!CMakeLists.txt
# tests/tools/*.py 之间有 import(upload_mutation_probe / v5_probe 会被主驱动拉起),
# 跑一次就在 tests/tools/ 下留一个 __pycache__/。它同样是未跟踪状态,
# 步骤 9 那轮是靠手工删掉的。
__pycache__/
*.pyc
# bench/ 的生成器依赖(autocannon,声明在 bench/package.json)。按文档敲一次
# npm install 就会在 bench/ 下留一个 node_modules/。带尾斜杠只匹配目录,
# 与上面 build-*/ 同理;不带斜杠会连同名文件一起匹配。
node_modules/
websocket_parser.h
websocket_parser.c
stdout.txt
stderr.txt
# IDE
.vs/
.vscode/
*.user
*.suo
# CMake
CMakeCache.txt
CMakeFiles/
cmake_install.cmake
*.cmake
!cmake/uvcppConfig.cmake.in
# OS
.DS_Store
Thumbs.db
# Package
*.tar.gz
*.zip
*.7z
# 本地工作区产物 —— 出包与探针留下的,clone 下来不该有
#
# 这三类**兜不住于上面的 `*.zip`**:目录里还有解包出来的头、.dll、.pdb 以及探针
# 自己的脚本,所以整个目录会以未跟踪状态出现,一次 `git add -A` 就全吞进去。
# `dist*/` 不带尾斜杠是为了同时匹配 `dist-120/` 这类带后缀的树(已确认无一被跟踪)。
dist*/
_probe/
_backup_*/
# C# 示例的构建产物(bindings/csharp/examples/*)
#
# `bin/` 与 `obj/` 是 dotnet 的规矩,里面除了 .dll 还有 `project.assets.json`、
# `*.nuget.g.props` 与一份 `*.csproj.nuget.dgspec.json`(**绝对路径**,换机器就没意义)。
# 不写成 `bin/` 全局规则:C++ 库里没有叫 bin/ 的正当产物,但写窄一点总归更好读。
bindings/csharp/**/bin/
bindings/csharp/**/obj/
# The compatibility layer and toolchain files are source, not generated.
!cmake/uvcpp_compat.cmake
!cmake/toolchains/
!cmake/toolchains/**
# 本地依赖源码树(各机各自准备;不是仓库内容)
_local_deps/