We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc9b7fd commit 4116bfeCopy full SHA for 4116bfe
Classes/git/PBGitRevList.mm
@@ -189,7 +189,13 @@ - (void) setupEnumerator:(GTEnumerator*)enumerator
189
} else if ([param hasPrefix:@"--glob="]) {
190
[enumerator pushGlob:[param substringFromIndex:@"--glob=".length] error:&error];
191
} else {
192
- [enumerator pushGlob:param error:&error];
+ NSError *lookupError = nil;
193
+ GTObject *obj = [repo lookUpObjectByRevParse:param error:&lookupError];
194
+ if (obj && !lookupError) {
195
+ [self addGitObject:obj toCommitSet:enumCommits];
196
+ } else {
197
+ [enumerator pushGlob:param error:&error];
198
+ }
199
}
200
201
0 commit comments