Commit graph

103 commits

Author SHA1 Message Date
Taeer Bar-Yam
81c6af2553 fix comment
It turns out readFile does realise the context, so it could make a
difference. I would still argue that's not our responsibility and your
git config should be pointing ot paths that are already valid.
2025-08-18 11:40:13 -04:00
Taeer Bar-Yam
61ddc300c1 discard string context of git config's core.excludesFile
Before this change, any store path in your git config would become part
of the string context of any of the parsed strings, and then prevent us
from appending it to a path.

Upon further reflection, we don't care even if core.excludesFile is a
store path itself, so we can unconditionally throw away the string
context.
2025-08-14 10:32:35 -04:00
Robert Hensing
637db32942
Merge pull request #68 from hercules-ci/test-nixos-23.11
nix/ci.nix: Test nixos-23.11
2024-02-28 03:28:52 +01:00
Robert Hensing
24564f7919 nix/ci.nix: Test nixos-23.11 2024-02-28 03:27:24 +01:00
Robert Hensing
0425359d03
Merge pull request #67 from deviant/short-circuit
Make gitignoreSourceWith short-circuit
2024-02-28 03:20:54 +01:00
Robert Hensing
71f8c3a2e6 ci.nix: Drop nixos-19.03 2024-02-28 03:18:26 +01:00
Robert Hensing
dc93a4d278 Add outPath short-circuiting tests 2024-02-23 11:27:18 +01:00
V
7a023a99ca Make gitignoreSourceWith short-circuit
This has been broken since its introduction due to a typo.
`lib.cleanSourceWith` uses the field `origSrc` to store the initial path
prior to processing— which is presumably what the author intended.

With this change, `gitignoreSource (lib.sources.trace /path/to/repo)` no
longer incorrectly prints ignored paths.

Change-Id: I475cee9576dd9969f5fe5127d937bc7fb480eb22
2024-02-22 11:33:06 +01:00
Robert Hensing
43e1aa1308
Update README.md 2023-12-29 22:57:41 +01:00
Robert Hensing
9e21c80adf
Merge pull request #64 from hercules-ci/fix-dir-with-ignored-contents
Fix dir with ignored contents
2023-09-07 17:53:21 +02:00
Robert Hensing
02c007b372 Reminder to port the tests 2023-09-07 17:16:10 +02:00
Robert Hensing
b5594318e5 Fix dir with ignored contents bug 2023-09-07 16:58:51 +02:00
Robert Hensing
44b3f2d6d2 Merge branch 'dir-with-ignored-contents' into more 2023-09-07 12:01:40 +02:00
Robert Hensing
17ab30e0a9 flake.lock: Update 2023-09-07 11:40:26 +02:00
Robert Hensing
1a2cd16932 flake.nix: Wire the checks 2023-09-07 11:40:12 +02:00
Robert Hensing
2eddf71196 flake.nix: description: does not have to be git 2023-09-07 11:21:31 +02:00
Robert Hensing
49e5d6daf3 Format 2023-09-07 11:20:25 +02:00
Robert Hensing
a20de23b92
Merge pull request #61 from hercules-ci/extraRules
Add `extraRules` parameter to `gitignoreFilterWith`
2022-08-14 08:37:52 +02:00
Bart Schuurmans
3f4a79613d Add failing test case for directory with ignored contents
In git, the entire directory does not exist
In gitignoresource, the empty directory does exist
2022-07-29 22:51:33 +02:00
Robert Hensing
fad6033fca Add extraRules to gitignoreFilterWith 2022-07-21 13:24:10 +02:00
Robert Hensing
f2ea0f8ff1
Merge pull request #60 from hercules-ci/globalIgnores-pure-mode
Disable globalIgnores when in pure mode
2022-07-21 13:21:53 +02:00
Robert Hensing
e42bb748f3 Disable globalIgnores when in pure mode 2022-07-21 12:49:22 +02:00
Robert Hensing
f840a659d5
Merge pull request #58 from centromere/home-with-pure-eval
Add support for pure evaluation mode
2022-07-13 12:02:14 +02:00
Alex Wied
cbafce8465
Update find-files.nix
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2022-07-13 05:18:32 -04:00
Alex Wied
f0e98c8e42 Add support for pure evaluation mode 2022-07-13 02:45:57 -04:00
Robert Hensing
bff2832ec3
README: add "added but ignored", dotfiles comparison 2022-03-05 12:36:45 +01:00
Robert Hensing
c581cb17c8
README.md: add fetchGit 2022-03-05 12:19:44 +01:00
Robert Hensing
5b9e0ff9d3
Merge pull request #55 from hercules-ci/extensible
Add *With functions to allow for more parameters
2021-10-25 14:30:13 +02:00
Robert Hensing
e1b3f46272 Add NixOS 21.05 2021-10-25 14:28:08 +02:00
Robert Hensing
998b4b7318 Add *With functions to allow for more parameters 2021-10-25 14:23:03 +02:00
Robert Hensing
9e80c4d830
Merge pull request #54 from lovesegfault/flake-add-overlay
refactor(flake): add overlay output
2021-10-13 20:58:50 +02:00
Bernardo Meurer
445f1a2f7e
refactor(flake): use prev.lib when using as overlay 2021-10-13 11:52:29 -07:00
Bernardo Meurer
dc9d90eb14
refactor(flake): add overlay output 2021-10-10 14:16:38 -07:00
Robert Hensing
80463148cd
Merge pull request #53 from doronbehar/flake
Add a flake.nix
2021-09-30 12:06:06 +02:00
Doron Behar
f8c014f72e Add a flake.nix 2021-09-30 12:26:42 +03:00
Robert Hensing
211907489e
Merge pull request #50 from zimbatm/patch-1
Update README.md
2021-01-26 15:54:36 +01:00
Jonas Chevalier
1b2f687ea0
Update README.md
Fix gitignore repo references
2021-01-26 15:40:29 +01:00
Robert Hensing
c4662e6624
Merge pull request #47 from hercules-ci/readme-alternative-fetch
Add alternative fetching method to README
2020-07-17 08:57:12 +02:00
Robert Hensing
3626e37017
Update README.md 2020-07-17 08:07:16 +02:00
Robert Hensing
647d0821b5
README.md: Add gitignoreFilter to Usage 2020-06-10 09:30:29 +02:00
Robert Hensing
eea2487dbb
Clarify gitignoreFilter example 2020-06-10 09:17:01 +02:00
Robert Hensing
3f94c456e3
Merge pull request #44 from lspitzner/master
Make git config lookups case insensitive
2020-06-08 09:43:51 +02:00
Lennart Spitzner
97d5366529 Make git config lookups case insensitive 2020-06-05 19:09:57 +02:00
Robert Hensing
00b237fb18
Merge pull request #41 from hercules-ci/fix-charclass-parsing
Fix character class parsing
2020-05-12 22:19:39 +02:00
Robert Hensing
f27ecea068 Fix character class parsing
Fixes #40
2020-05-12 16:06:42 +02:00
Robert Hensing
2ced4519f8
Merge pull request #33 from hercules-ci/more-pathExists
Prevent readDirs via pathExists
2020-03-03 22:50:03 +01:00
Robert Hensing
608eb8a9c0
Merge branch 'master' into more-pathExists 2019-12-19 14:14:08 +01:00
Robert Hensing
7415c4feb1
Merge pull request #36 from hercules-ci/doc-gitignoreFilter
Document gitignoreFilter
2019-12-19 14:12:57 +01:00
Robert Hensing
5196a46030 Remove guardProperFile and doc the readDir problem 2019-11-28 16:21:51 +01:00
Domen Kožar
dcd0b0e878
Merge pull request #37 from hercules-ci/readme-security
README.md: Add Security section
2019-11-28 11:54:24 +01:00