Skip to content

Commit

Permalink
support short revisions for start and end parameter
Browse files Browse the repository at this point in the history
resolves rust-lang#20
  • Loading branch information
hellow554 committed May 10, 2019
1 parent 7cb0720 commit 49f851d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ use least_satisfying::{least_satisfying, Satisfies};
fn get_commits(start: &str, end: &str) -> Result<Vec<git::Commit>, Error> {
eprintln!("fetching commits from {} to {}", start, end);
let commits = git::get_commits_between(start, end)?;
assert_eq!(commits.first().expect("at least one commit").sha, start);
assert_eq!(commits.first().expect("at least one commit").sha, git::expand_commit(start)?);

Ok(commits)
}
Expand Down

0 comments on commit 49f851d

Please sign in to comment.