Results 618 comments of piegames

How about this: we add two options, `--exclusion-marker-file` and `--exclusion-generator-script`. Say I set `--exclusion-marker-file=.gitignore` and `--exclusion-generator-script="bash gitignore.sh"`. Now every time a folder containing a `.gitignore` is found, borg will call...

Regarding my suggestion above: It would change how tagged files work. Instead of saying "hey, I'm tagged, exclude me", `dir_is_tagged` should somehow generate a list of patterns to be included....

Maybe "calling a script" is a bad way to phrase it. What I mean with it is to have the possibility to call an external command that does the job...

Say I set `--exclusion-marker-file=.gitignore` and `--exclusion-marker-command=my-gitignore-to-excludes`. Now if Borg encounters any file called `.gitignore`, it will call `my-gitignore-to-excludes /path/to/gitignore/that/was/found/.gitignore`, which in return may print something like /path/to/gitignore/that/was/found/bin/ /path/to/gitignore/that/was/found/build/ /path/to/gitignore/that/was/found/*.class to...

I am going to abandon this feature for now. Since I do not have the brain power to process borg's core backup code yet to add a new feature, I...

If anyone's interested: I've written a small script to exclude gitignored files: ```bash #!/bin/bash # Arguments: a path to check for # Output: all ignored files and folders in all...

I'd argue that because many CLIs expect files, being able to convert a string into a file-descriptor in-memory (with transparent temporary file fallback if necessary) is a very important feature...

> Moreover, I'd posit that the majority of program invocations are streaming (cat, grep, tr, etc.). In pipes, fully agreed. But for file path substitutions? Never heard of.

> tbh, I think the revert is worse than the status quo. The diff on Nixpkgs is empty, FWIW. Even within the test suite, if you ignore the synthetic tests...

Negative. Preserving line breaks and preserving newlines are two different things in Nixfmt. The original issue for which things got implemented was #188, however I don't remember if the wording...