Skip to main content

get_commits_in_range

Function get_commits_in_range 

Source
pub fn get_commits_in_range(
    from_ref: &str,
    to_ref: &str,
) -> Result<Vec<CommitInfo>>
Expand description

Get commits in a range between two refs.

Returns commits between from_ref and to_ref (inclusive of to_ref, exclusive of from_ref). Uses git log from_ref..to_ref format.

ยงErrors

Returns error if refs are invalid or git command fails.