From 9863f501ef5c6aef9b60acc0b490d5cc675aef4e Mon Sep 17 00:00:00 2001 From: Uwe Schwaeke Date: Wed, 25 Mar 2026 16:03:50 +0100 Subject: [PATCH] cmd: fix kwarg formatting in docstring example Update the example to accurately reflect the output of `transform_kwarg`. When a key is longer than one letter and its value is a non-empty, non-boolean type, it is transformed into the `--key=value` format, rather than missing the double dashes or using spaces. Signed-off-by: Uwe Schwaeke --- git/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/cmd.py b/git/cmd.py index 78a9f4c78..b529bcc10 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -1572,7 +1572,7 @@ def _call_process( turns into:: - git rev-list max-count 10 --header master + git rev-list --max-count=10 --header=master :return: Same as :meth:`execute`. If no args are given, used :meth:`execute`'s