Skip to content

branch: move from foreach to an iterator#1938

Merged
vmg merged 1 commit intodevelopmentfrom
cmn/branch-iterator
Nov 5, 2013
Merged

branch: move from foreach to an iterator#1938
vmg merged 1 commit intodevelopmentfrom
cmn/branch-iterator

Conversation

@carlosmn
Copy link
Member

@carlosmn carlosmn commented Nov 2, 2013

Create a git_branch_iterator type which is equivalent to the foreach but
lets us write loops instead of callbacks.

Since the introduction of git_reference_shorthand(), the added value of
passing the name is reduced.

Copy link
Member

Choose a reason for hiding this comment

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

over

Copy link
Member Author

Choose a reason for hiding this comment

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

my iterator is a pirate

Copy link
Member

Choose a reason for hiding this comment

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

A recoverrrring one, then.

Create a git_branch_iterator type which is equivalent to the foreach but
lets us write loops instead of callbacks.

Since the introduction of git_reference_shorthand(), the added value of
passing the name is reduced.
vmg pushed a commit that referenced this pull request Nov 5, 2013
branch: move from foreach to an iterator
@vmg vmg merged commit c82f7f8 into development Nov 5, 2013
@carlosmn carlosmn deleted the cmn/branch-iterator branch November 5, 2013 21:26
@ben ben mentioned this pull request Feb 24, 2014
34 tasks
phatblat pushed a commit to phatblat/libgit2 that referenced this pull request Sep 13, 2014
branch: move from foreach to an iterator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants