aboutsummaryrefslogtreecommitdiff
path: root/lib/git/testdata/IsIgnored
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-02 00:29:23 +0700
committerShulhan <ms@kilabit.info>2026-01-06 14:56:07 +0700
commit988ff4596d6fb600d0c94aeed41b5b17f1677032 (patch)
tree5025b84a976cdef093e39c67ecdca7394127e029 /lib/git/testdata/IsIgnored
parent2d18ac7fd9f8ddc92ddfb7de772adea8468ac3ea (diff)
downloadpakakeh.go-988ff4596d6fb600d0c94aeed41b5b17f1677032.tar.xz
lib/git: implement Gitignore
Gitignore is a type that represent ".gitignore" file. There are two ways to populate Gitignore, by using [LoadGitignore] function, or by using [Gitignore.Parse] method. After the Gitignore created, one can check if a path is ignored by using [Gitignore.IsIgnored] method, relative to the Gitignore directory.
Diffstat (limited to 'lib/git/testdata/IsIgnored')
-rw-r--r--lib/git/testdata/IsIgnored/foo/vendor2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/git/testdata/IsIgnored/foo/vendor b/lib/git/testdata/IsIgnored/foo/vendor
new file mode 100644
index 00000000..62f13a9e
--- /dev/null
+++ b/lib/git/testdata/IsIgnored/foo/vendor
@@ -0,0 +1,2 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2025 M. Shulhan <ms@kilabit.info>