summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-openstackclient
diff options
context:
space:
mode:
authorMorgan Jones <me@numin.it>2025-10-09 00:50:10 -0700
committerMorgan Jones <me@numin.it>2025-10-12 23:00:17 -0700
commit77e773dbc6c45c0678d1c5c588a071a30add51bf (patch)
tree57b645558be7b25be38952ba0ffaa5feaf0e449f /pkgs/development/python-modules/python-openstackclient
parenta19469108ba878a8c08a4fb14e53e5eddc39647a (diff)
fetchpatch: support `hunks` option
We can pick individual hunks or ranges of hunks with filterdiff, so expose that in fetchpatch. This was originally useful for openssh, since the first hunks always look like this (that is, only differing in the date): ``` @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.616 2025/08/29 03:50:38 djm Exp $ */ +/* $OpenBSD: ssh.c,v 1.617 2025/09/04 00:29:09 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland ``` The usage looks something like this to skip the first hunk in the patch. Numbers work too, if you'd like to only pick out specific hunks. ``` fetchpatch { name = "my-patch"; url = "..."; hunks = [ "2-" ]; hash = "..."; } ```
Diffstat (limited to 'pkgs/development/python-modules/python-openstackclient')
0 files changed, 0 insertions, 0 deletions