Function branchless::git::check_out_commit
source · [−]pub fn check_out_commit(
effects: &Effects,
git_run_info: &GitRunInfo,
event_tx_id: Option<EventTransactionId>,
target: Option<impl AsRef<OsStr>>,
additional_args: impl IntoIterator<Item = impl AsRef<OsStr>>
) -> Result<isize>
Expand description
Checks out the requested commit. If the operation succeeds, then displays the new smartlog. Otherwise displays a warning message.