home: git: clean up ignore file handling
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4363c1312e
commit
3e9ccdbca7
|
@ -123,8 +123,10 @@ in
|
||||||
|
|
||||||
ignores =
|
ignores =
|
||||||
let
|
let
|
||||||
readLines = file: lib.splitString "\n" (builtins.readFile file);
|
inherit (builtins) readFile;
|
||||||
removeComments = lib.filter (line: line != "" && !(lib.hasPrefix "#" line));
|
inherit (lib) filter hasPrefix splitString;
|
||||||
|
readLines = file: splitString "\n" (readFile file);
|
||||||
|
removeComments = filter (line: line != "" && !(hasPrefix "#" line));
|
||||||
getPaths = file: removeComments (readLines file);
|
getPaths = file: removeComments (readLines file);
|
||||||
in
|
in
|
||||||
getPaths ./default.ignore;
|
getPaths ./default.ignore;
|
||||||
|
|
Loading…
Reference in a new issue