-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitignore
More file actions
46 lines (44 loc) · 1.49 KB
/
Copy path.gitignore
File metadata and controls
46 lines (44 loc) · 1.49 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
# --- makepkg build artifacts (any recipe dir, any depth) ---
pkg/
src/
*.pkg.tar.*
*.src.tar.*
*.log
# --- recipe-only policy ---
# Under pkgs/, commit ONLY packaging files. Everything else — source code
# (.sh .py .rs .c .go ...), tests, downloaded tarballs — is ignored no
# matter what. Allowlist, so a new language/extension can never sneak in.
# (!pkgs/**/ lets git descend into dirs to find the allowed files.)
pkgs/**
!pkgs/**/
# Real recipe files live DIRECTLY in pkgs/<name>/. Re-ignore every subdirectory
# of a recipe — makepkg's src/ and pkg/, and the persistent git mirror clone at
# pkgs/<name>/<pkgname>/. Otherwise an upstream-shipped *.hook (or *.service,
# *.desktop, ...) inside a clone would leak via the file allowlist below, and
# the clone's embedded .git would be added as a gitlink. keys/ is re-allowed
# right after as the one legitimate nested location.
pkgs/*/*/
!pkgs/*/keys/
# Allowlisted files are matched ONE level deep (pkgs/*/FILE), never pkgs/**/FILE,
# so nothing inside a re-ignored subdir can sneak back in.
!pkgs/*/.directory
!pkgs/*/PKGBUILD
!pkgs/*/.SRCINFO
!pkgs/*/.gitignore
!pkgs/*/.nvchecker.toml
!pkgs/*/REUSE.toml
!pkgs/*/*.patch
!pkgs/*/*.diff
!pkgs/*/*.hook
!pkgs/*/*.service
!pkgs/*/*.sysusers
!pkgs/*/*.tmpfiles
!pkgs/*/*.desktop
# .install scriptlets only in -sys recipe dirs (the suffix that opts in).
!pkgs/*-sys/*.install
# Detached signatures: the one allowed nested location (keys/pgp/*.asc).
!pkgs/*/keys/**/*.asc
# --- editor / OS noise ---
*.swp
*~
.DS_Store