Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <uwe.schwaeke@clyso.com>
  • Loading branch information
UweSchwaeke committed Mar 25, 2026
commit 9863f501ef5c6aef9b60acc0b490d5cc675aef4e
2 changes: 1 addition & 1 deletion git/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading