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 submodules to be ignored in is_dirty#294

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
Byron merged 1 commit intogitpython-developers:masterfromJavex:submodule_fix
Jun 10, 2015

Conversation

@Javex
Copy link

I had a use case withPyGitUp where I did not want submodules to be considered when asking whether a repo is dirty. This change allows that. I am a bit unsure with the "untracked_files" part: I would think that it's not necessary, as I can't imagine an untracked submodule (how would that work? Git would not see it as a submodule), but I included this change anyway. I can of course revert it if you are sure that there can't be a relevant case.

One problem though: I could not run (and thus not write) tests as even the most current tag had test failures for me on Python 2.7.

Please let me know what you think.

There are cases when might not consider a directory dirty when a submodule haschanges. Particular case was git-up stashing changes where submodules areirrelevant.
Javex added a commit to Javex/PyGitUp that referenced this pull requestJun 5, 2015
Submodule changes cannot be stashed and thus should not be considered whenstashing changes. Requiresgitpython-developers/GitPython#294 to be appliedfirst.
@ByronByron merged commit5385cbd intogitpython-developers:masterJun 10, 2015
Byron added a commit that referenced this pull requestJun 10, 2015
* renamed `consider_submodules` to `submodules` to be in line with the  existing parameters. Nowadays I would prefer the `consider_` prefix,  but can't change the existing API and thus stick to the current  naming scheme.* reduced amount of code in one portion to make it more maintainable.Related to#294
@Byron
Copy link
Member

Thank you very much !

@ByronByron added this to thev1.0.2 - Fixes milestoneJun 10, 2015
@Byron
Copy link
Member

You can watch the development streamon youtube.

GitPython #5 [merge PR 294 - improve submodule handling of is_dirty method]

thumb

@JavexJavex deleted the submodule_fix branchJune 10, 2015 17:22
@Javex
Copy link
Author

The youtube thing was great :) Nice to hear some comments on the PR. You could of course have asked, even if 5 days have passed, I would have gladly made the changes. Thanks for being so quick in merging the request.

Javex added a commit to Javex/PyGitUp that referenced this pull requestJun 11, 2015
The pull requestgitpython-developers/GitPython#294 has been merged but the APIwas changed slighty. This commit reflects this change so that it works again.
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

v1.0.2 - Fixes

Development

Successfully merging this pull request may close these issues.

2 participants

@Javex@Byron

[8]ページ先頭

©2009-2025 Movatter.jp