File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change 114114// / Returns a new GTIndexEntry, or nil if an error occurred.
115115- (GTIndexEntry *)entryWithName : (NSString *)name error : (NSError **)error ;
116116
117- // /TODO: Document
118- // / Get the
119- - (NSData *)dataWithName : (NSString *)name error : (NSError **)error ;
120-
121117// / Add an entry to the index.
122118// /
123119// / Note that this *cannot* add submodules. See -[GTSubmodule addToIndex:].
Original file line number Diff line number Diff line change @@ -160,18 +160,6 @@ - (GTIndexEntry *)entryWithName:(NSString *)name error:(NSError **)error {
160160 return [self entryAtIndex: pos];
161161}
162162
163- - (NSData *)dataWithName : (NSString *)name error : (NSError **)error {
164- GTIndexEntry *entry = [self entryWithName: name error: error];
165- if (*error) return nil ;
166-
167- const git_oid *oid = &entry.git_index_entry ->id ;
168- GTBlob *blob = [self .repository lookUpObjectByGitOid: oid
169- objectType: GTObjectTypeBlob
170- error: error];
171-
172- return [blob data ];
173- }
174-
175163- (BOOL )addEntry : (GTIndexEntry *)entry error : (NSError **)error {
176164 int status = git_index_add (self.git_index , entry.git_index_entry );
177165 if (status != GIT_OK) {
You can’t perform that action at this time.
0 commit comments