Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support repeated kwargs#413

Merged
nvie merged 1 commit into
gitpython-developers:mastergitpython-developers/GitPython:masterfrom
nvie:support-repeated-cmd-kwargsCopy head branch name to clipboard
Apr 19, 2016
Merged

Support repeated kwargs#413
nvie merged 1 commit into
gitpython-developers:mastergitpython-developers/GitPython:masterfrom
nvie:support-repeated-cmd-kwargsCopy head branch name to clipboard

Conversation

@nvie

@nvie nvie commented Apr 18, 2016

Copy link
Copy Markdown
Contributor

Some Git command line options are allowed to be repeated multiple times. Examples of this are the -C flag which may occur more than once to "strengthen" its effect, or the -L flag on Git blames, to select
multiple blocks of lines to blame.

$ git diff -C -C HEAD~1 HEAD
$ git blame -L 1-3 -L 12-18 HEAD -- somefile.py

This patch supports passing a list/tuple as the value part for kwargs, so that the generated Git command contain the repeated options.

Some Git command line options are allowed to be repeated multiple times.
Examples of this are the -C flag which may occur more than once to
"strengthen" its effect, or the -L flag on Git blames, to select
multiple blocks of lines to blame.

    $ git diff -C -C HEAD~1 HEAD
    $ git blame -L 1-3 -L 12-18 HEAD -- somefile.py

This patch supports passing a list/tuple as the value part for kwargs,
so that the generated Git command contain the repeated options.
@nvie nvie merged commit 504870e into gitpython-developers:master Apr 19, 2016
@nvie nvie deleted the support-repeated-cmd-kwargs branch April 19, 2016 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.