aboutsummaryrefslogtreecommitdiff
path: root/lib/git/testdata
AgeCommit message (Collapse)Author
2026-01-15all: convert license and copyright to use SPDX identifiersShulhan
With help of spdxconv tool [1], we able to bulk update all files license and copyright format to comply with SPDX formats. [1] https://kilabit.info/project/spdxconv/
2026-01-11lib/git: fix ignore pattern with single wildcard '*'Shulhan
Single wildcard should ignore everything inside it.
2026-01-06lib/git: add Git type with method IsIgnoredShulhan
The Git type is for working with single git repository. The [Git.IsIgnored] method is to check if the `path` is ignored by git. This is processed by matching it with all of the pattern in the ".gitignore" file from the path directory and its parent until the root of Git repository.
2026-01-06lib/git: implement GitignoreShulhan
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.
2019-11-15lib/git: add empty git directories on testdataShulhan
2019-11-15lib/git: fix the test using full path URL and repository directoryShulhan
2019-01-29lib/git: fix testdata and test inputShulhan
Somehow, the bare repository in testdata/beku_test is not detected as repository by git version 2.20.1.495.gaa96b0ce6b.
2018-09-12lib/git: new package that wrap common git commands and parse git configShulhan
List of current git commands that are wrapped, - Setting HEAD to specific revision: "git checkout <revision>" - Cloning repository: "git clone <remoteURL>" - Fetch all changes from remote: "git fetch --all" - Get tag on revision: "git describe --tags --exact-match <revision>" - Get latest commit: "git rev-parse --short <ref>" - Get latest tag - Get latest version (combination of get latest commit and tag) - Log revisions: "git --no-pager log --oneline"