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.
2 parents fb276dc + 8800353 commit 2edd7eeCopy full SHA for 2edd7ee
src/git/repository.rs
@@ -199,6 +199,15 @@ impl<'a> IntoIterator for CommitRange<'a> {
199
type IntoIter = CommitRangeIterator<'a>;
200
201
fn into_iter(self) -> Self::IntoIter {
202
+ // ie for single commit branches
203
+ if self.start_oid == self.end_oid {
204
+ return CommitRangeIterator {
205
+ repo: self.repo,
206
+ commit_oids: vec![self.end_oid.clone()],
207
+ index: 0,
208
+ };
209
+ }
210
+
211
// Use git rev-list to get all commits between start and end
212
// Format: start_oid..end_oid means commits reachable from end_oid but not from start_oid
213
let mut args = self.repo.global_args_for_exec();
0 commit comments