Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Support repeated kwargs#413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nvie merged 1 commit intogitpython-developers:masterfromnvie:support-repeated-cmd-kwargs
Apr 19, 2016
Merged

Support repeated kwargs#413

nvie merged 1 commit intogitpython-developers:masterfromnvie:support-repeated-cmd-kwargs
Apr 19, 2016

Conversation

nvie
Copy link
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 selectmultiple blocks of lines to blame.    $ git diff -C -C HEAD~1 HEAD    $ git blame -L 1-3 -L 12-18 HEAD -- somefile.pyThis patch supports passing a list/tuple as the value part for kwargs,so that the generated Git command contain the repeated options.
@nvienvie merged commit504870e intogitpython-developers:masterApr 19, 2016
@nvienvie deleted the support-repeated-cmd-kwargs branchApril 19, 2016 19:48
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@nvie

[8]ページ先頭

©2009-2025 Movatter.jp