summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authormaralorn <malte.brandy@maralorn.de>2022-03-25 16:32:14 +0100
committerGitHub <noreply@github.com>2022-03-25 16:32:14 +0100
commit0e0bb200ff2028432d56f710213873f7dd3d345b (patch)
treeb3a8aa3cb564bfd077a3ef22ba4fb647a6b90666 /doc
parent974af506015178f75768d486f4372a12e6a92578 (diff)
parenta6bc988f00aab57694d8db53284617a34a7f8d61 (diff)
downloadnixpkgs-0e0bb200ff2028432d56f710213873f7dd3d345b.tar
nixpkgs-0e0bb200ff2028432d56f710213873f7dd3d345b.tar.gz
nixpkgs-0e0bb200ff2028432d56f710213873f7dd3d345b.tar.bz2
nixpkgs-0e0bb200ff2028432d56f710213873f7dd3d345b.tar.lz
nixpkgs-0e0bb200ff2028432d56f710213873f7dd3d345b.tar.xz
nixpkgs-0e0bb200ff2028432d56f710213873f7dd3d345b.tar.zst
nixpkgs-0e0bb200ff2028432d56f710213873f7dd3d345b.zip
Merge pull request #165327 from ncfavier/fetchpatch-relative
fetchpatch: add `preIncludes` and `relative`
Diffstat (limited to 'doc')
-rw-r--r--doc/contributing/coding-conventions.chapter.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/contributing/coding-conventions.chapter.md b/doc/contributing/coding-conventions.chapter.md
index cfe8582e514..dac6d828ac0 100644
--- a/doc/contributing/coding-conventions.chapter.md
+++ b/doc/contributing/coding-conventions.chapter.md
@@ -540,10 +540,11 @@ If you do need to do create this sort of patch file, one way to do so is with gi
 
 If a patch is available online but does not cleanly apply, it can be modified in some fixed ways by using additional optional arguments for `fetchpatch`:
 
+- `relative`: Similar to using `git-diff`'s `--relative` flag, only keep changes inside the specified directory, making paths relative to it.
 - `stripLen`: Remove the first `stripLen` components of pathnames in the patch.
 - `extraPrefix`: Prefix pathnames by this string.
-- `excludes`: Exclude files matching this pattern.
-- `includes`: Include only files matching this pattern.
+- `excludes`: Exclude files matching these patterns (applies after the above arguments).
+- `includes`: Include only files matching these patterns (applies after the above arguments).
 - `revert`: Revert the patch.
 
 Note that because the checksum is computed after applying these effects, using or modifying these arguments will have no effect unless the `sha256` argument is changed as well.