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

Allow for setting git options, that are persistent across subcommand calls#536

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

Conversation

bpoldrack
Copy link
Contributor

@bpoldrackbpoldrack commentedOct 18, 2016
edited
Loading

Currently_git_options in classGit are reset after each subcommand call. While this is appropriate in most cases, I'm in need to have options for the git executable, that are used with all calls to git on a certain repository and I can't provide this option for each and every call. Therefore I'd like to introduce the possibility to persistently set such options for a given instance ofGit.

This is my first PR here, so I'm not exactly sure, what you want me to provide.CONTRIBUTING.md reads: "Write a test that fails unless your patch is present."
Where am I supposed to put such a test?
Just add it togit/test/test_git.py?

@codecov-io
Copy link

codecov-io commentedOct 18, 2016
edited
Loading

Current coverage is 94.45% (diff: 100%)

Merging#536 intomaster will increase coverage by0.02%

@@             master       #536   diff @@==========================================  Files            63         63            Lines          9736       9749    +13     Methods           0          0            Messages          0          0            Branches          0          0          ==========================================+ Hits           9193       9208    +15+ Misses          543        541     -2  Partials          0          0

Powered byCodecov. Last update9e4a454...bf8ce94


# reset to empty:
self.git.set_persistent_git_options()
self.assertRaises(GitCommandError, self.git.NoOp)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

A minorflake8 reportedby travis:./git/test/test_git.py:175:43: E241 multiple spaces after ','

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Right, forgot this one. Thanks.

@ankostisankostis merged commitaab7dc2 intogitpython-developers:masterOct 19, 2016
@bpoldrackbpoldrack mentioned this pull requestOct 20, 2016
@Byron
Copy link
Member

@bpoldrack Thanks a lot for your contribution ! I am doing maintenance today, and am confident to manage to put out a new release as well.

@bpoldrackbpoldrack deleted the nf-persistent-git-options branchOctober 26, 2016 03:24
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ankostisankostisankostis left review comments

Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@bpoldrack@codecov-io@Byron@ankostis

[8]ページ先頭

©2009-2025 Movatter.jp