aboutsummaryrefslogtreecommitdiff
path: root/b4/command.py
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-05-22 17:55:05 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-05-22 17:55:05 -0400
commita73711ad65e0f5d9ad155713fea2e609cd7fc188 (patch)
treeb4262a156dc28474b298a9b8bd8e547038d59228 /b4/command.py
parent6ab6ed4dacb2c238ab35087cae9dd8c72feb2304 (diff)
downloadb4-a73711ad65e0f5d9ad155713fea2e609cd7fc188.tar.gz
Add ability to diff arbitrary mbox files
Sometimes we are unable to properly look up previous series -- usually because the cover letter title changes. For those cases, it is now possible to diff two arbitrary mbox files prepared with "b4 am -T". There's also a smattering of other fixes in there because I'm too lazy to properly stage my patches. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/command.py')
-rw-r--r--b4/command.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/b4/command.py b/b4/command.py
index 80b072a..2964f54 100644
--- a/b4/command.py
+++ b/b4/command.py
@@ -106,6 +106,8 @@ def cmd():
help='Cherry-pick a subset of patches (e.g. "-P 1-2,4,6-", '
'"-P _" to use just the msgid specified, or '
'"-P *globbing*" to match on commit subject)')
+ sp_am.add_argument('-g', '--guess-base', dest='guessbase', action='store_true', default=False,
+ help='Try to guess the base of the series (if not specified)')
sp_am.set_defaults(func=cmd_am)
# b4 attest
@@ -187,6 +189,8 @@ def cmd():
help='Save diff into this file instead of outputting to stdout')
sp_diff.add_argument('-c', '--color', dest='color', action='store_true', default=False,
help='Force color output even when writing to file')
+ sp_diff.add_argument('-m', '--compare-am-mboxes', dest='ambox', nargs=2, default=None,
+ help='Compare two mbx files prepared with "b4 am"')
sp_diff.set_defaults(func=cmd_diff)
cmdargs = parser.parse_args()