Skip to content

Commit 283df6f

Browse files
authored
Fix keyname in patch dict
The key is name `name` not `filename`
1 parent 2422747 commit 283df6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/patch-files.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ which is used in the patch command (`patch -p<level>`), or a directory relative
3333

3434
A `dict` value can be used pass additional arguments to the `patch` command.
3535
For example, the `--binary` flag may be needed for patch files
36-
with CRLF endings. For a `dict` value the `filename` key is required.
36+
with CRLF endings. For a `dict` value the `name` key is required.
3737
`level` and `opts` are supported (optional) keys.
3838

3939
!!! note
40-
Specifying only `filename` in `dict` is the same as using a plain `string` definition.
41-
Specifying `filename` and `level` is same as using a `tuple`
40+
Specifying only `name` in `dict` is the same as using a plain `string` definition.
41+
Specifying `name` and `level` is same as using a `tuple`
4242
definition.
4343

4444
Example:
@@ -58,7 +58,7 @@ patches = [
5858
('Makefile', 'path/to/target/'),
5959

6060
# specify patch file and optionally level and opts for patch command
61-
{'filename': 'example.patch', 'level': 1, 'opts': '--binary'}
61+
{'name': 'example.patch', 'level': 1, 'opts': '--binary'}
6262
]
6363
```
6464

0 commit comments

Comments
 (0)