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

Add isremote method to refs#101

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

Closed
jjulien wants to merge1 commit intogitpython-developers:0.3fromjjulien:isremote
Closed

Add isremote method to refs#101

jjulien wants to merge1 commit intogitpython-developers:0.3fromjjulien:isremote

Conversation

jjulien
Copy link

Adds an easy interface to determine if a reference is a remote reference or a local reference

Adds an easy interface to determine if a reference is a remote reference or a local reference
@Byron
Copy link
Member

Thank you.
I believe the originally intended way was to useisinstance(ref, RemoteReference), which implies that git-python will always return appropriately typed objects. Maybe that's not the case for you ?
Nonetheless, I see the point as something similar is checked inReference.remote_name() for instance, the respective decorator can use the method you propose right away.

However, to stay consistent, I renamed the function tois_remote().

Byron added a commit that referenced this pull requestNov 19, 2014
Based on the functionality proposed in#101[ci skip]
@ByronByron closed thisNov 19, 2014
@ByronByron added this to thev0.3.3 milestoneNov 19, 2014
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
v0.3.3
Development

Successfully merging this pull request may close these issues.

2 participants
@jjulien@Byron

[8]ページ先頭

©2009-2025 Movatter.jp