azure_devops/repositories/methods/get_commit.rs
1use super::super::models::GitCommit;
2use super::super::RepositoriesClient;
3use crate::constants::ApiPath;
4use crate::error::Result;
5
6impl RepositoriesClient<'_> {
7 pub async fn get_commit(&self, id: &str, sha: &str) -> Result<GitCommit> {
8 self.http
9 .get(&ApiPath::repository_commit(id, sha), &[])
10 .await
11 }
12}