-
Notifications
You must be signed in to change notification settings - Fork 533
Refactor git config #400
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor git config #400
Conversation
7674f64
to
dad56fc
Compare
the failing test is not related to the changes, it fails the same way on ruby-head for longer time |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The Git module config method when used via `include Git` does not work as the `lambda` requires parameters to be present and the second part of condition in Git::Lib::config_get calls the lambda without any params, switching to `Proc.new` fixes the problem. Signed-off-by: Michal Papis <michal.papis@toptal.com>
The Git module has config and global_config methods that are available only when Git module is included. Refactored the code to remove duplication and to make it more explicit we are managing `git config` not the library setup. Signed-off-by: Michal Papis <michal.papis@toptal.com>
dad56fc
to
117b45f
Compare
tests are passing, the code is rebased, anything else I should do? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
still waiting for the review |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
still waiting for the review |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
still waiting for the review |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
still waiting for the review |
A friendly reminder that this issue had no activity for 60 days. |
A friendly reminder that this issue had no activity for 60 days. |
I am closing this PR to have a broader discussion about how |
Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.
Description
The Git module has config and global_config methods that are available only when Git module is included. Refactored the code to remove duplication and to make it more explicit we are managing
git config
not the library setup.