Skip to content

Commit 691e38f

Browse files
committed
Add reference for parameter and behaviour
1 parent 627bd75 commit 691e38f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/usage.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,16 @@ By default the library will attempt to use the `patch` binary and fall back to `
9797
If you want to force using `git apply` for patches that are compatible only with `git` you can do so
9898
with this parameter on patch level.
9999

100+
#### `keep-empty-files` (bool, default: `false`)
101+
102+
_Warning!_ This setting has effect only when using the `patch` method.
103+
104+
By default the empty files will be removed by passing `--remove-empty-files` switch to the `patch` command.
105+
106+
This allows to create patches which remove files.
107+
108+
If you want to override this behaviour per-patch set this parameter to `true`.
109+
100110
# Notable use-cases
101111

102112
## Applying patches to root package (root project folder)

0 commit comments

Comments
 (0)