Git.framework Reference Library

GITPackedRefsEnumerator Class Reference

GITPackedRefsEnumerator Class Reference

Declared in GITPackedRefsEnumerator.h

Overview

The GITPackedRefsEnumerator class provides enumeration of packed-refs contents.

This enumerator allows for iteration over the contents of packed-refs using either normal enumeration

id ref; GITRepo *repo = [GITRepo repo]; GITPackedRefsEnumerator *e = [GITPackedRefsEnumerator enumeratorForRepo:repo]; while ( (object = [e nextObject]) ) { // do something with object... }

or using Fast Enumeration

GITRepo *repo = [GITRepo repo]; for ( id object in [GITPackedRefsEnumerator enumeratorForRepo:repo]) { // do something with object... }

Tasks

Class Methods

enumeratorForRepo:

+ (GITPackedRefsEnumerator *)enumeratorForRepo:(GITRepo *)theRepo
Parameters
theRepo

Repository to create the enumerator for

Return Value

packed refs enumerator

Discussion

Returns a packed refs enumerator for the provided repository.

See Also
Declared In
GITPackedRefsEnumerator.h

Instance Methods

initWithRepo:

- (id)initWithRepo:(GITRepo *)theRepo
Parameters
theRepo

Repository to create the enumerator for

Return Value

packed refs enumerator

Discussion

Returns a packed refs enumerator for the provided repository.

Declared In
GITPackedRefsEnumerator.h

Last updated: 2011-2-20