Add `stg import --message-id` option
commit0061af852bc83940ec48a3a4a5781086dc4ee811
authorPeter Grayson <pete@jpgrayson.net>
Fri, 8 Oct 2021 22:28:09 +0000 (8 18:28 -0400)
committerPeter Grayson <pete@jpgrayson.net>
Sat, 9 Oct 2021 02:55:01 +0000 (8 22:55 -0400)
tree6312f9b002a205a7dd0bf881e1015625bb4cec85
parenteeba0807f8e4b93cb7d8885cab49b8a95f6e0e77
Add `stg import --message-id` option

The new --message-id option enables capturing the Message-ID header as
the Message-Id trailer when importing patches from emails. The
Message-ID is no longer captured by default. I.e. StGit's default
behavior reverts to as it was before v1.2.

The new stgit.import.messageid config option may be set to enable this
behavior by default.

Partially addresses #42.

Signed-off-by: Peter Grayson <pete@jpgrayson.net>
completion/stgit.zsh
stgit/commands/imprt.py
t/t1801-import-email.sh