← 返回首页
cmd: fix kwarg formatting in docstring example · gitpython-developers/GitPython@9863f50 · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Commit 9863f50

Browse files
committed
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>
1 parent d0318a6 commit 9863f50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎git/cmd.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ def _call_process(
15721572
15731573
turns into::
15741574
1575-
git rev-list max-count 10 --header master
1575+
git rev-list --max-count=10 --header=master
15761576
15771577
:return:
15781578
Same as :meth:`execute`. If no args are given, used :meth:`execute`'s

0 commit comments

Comments
 (0)

Footer

© 2026 GitHub, Inc.