notmuch-extract-patch(1)

notmuch-extract-patch1

Extract a git patch series from notmuch

Usage

notmuch-extract-patch [mbox-extract-patch(1) options] [--] QUERY

Overview

notmuch-extract-patch is a wrapper around mbox-extract-patch(1) to extract a series of git patches from your notmuch database. It is designed to extract patches that were originally sent using git-send-email(1). It skips cover letters and replies/reviews in its output.

Examples

    % git checkout -b test-feature
    % notmuch-extract-patch thread:000000000000265f | git am

Limitations

We inherit limitations of mbox-extract-patch(1).

notmuch-extract-patch can select patches to extract based on the reroll count (see -v in mbox-extract-patch(1)), but otherwise typical usage assumes that there is only one patch series in a thread.

If this assumption is violated, you would need to construct a notmuch query that includes only the patches you want to extract, which somewhat defeats the purpose of having this script.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

Sean Whitton <[email protected]>

Rewrite, with additional features, of a script by Aurelien Aptel.

From mailscripts 30-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.