Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Aug 1, 2024
1 parent 5c30249 commit 8b48f55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ pub struct CloneOptions {
/// - `git reset HEAD <reset mode>` (where `reset mode` is the value of
/// [`branch_update_action`](Self::branch_update_action))
/// - `git pull --ff-only`
///
/// If these operations fail an error is returned from [`Repository::clone_ext`].
pub force_ref: Option<Ref>,
/// The mode that is passed to `git reset` when the branch is updated.
Expand Down Expand Up @@ -459,6 +460,7 @@ impl CloneOptions {
/// - `git reset HEAD <reset mode>` (where `reset mode` is the value of
/// [`branch_update_action`](Self::branch_update_action))
/// - `git pull --ff-only`
///
/// If these operations fail an error is returned from [`Repository::clone_ext`].
pub fn force_ref(mut self, force_ref: Ref) -> Self {
self.force_ref = Some(force_ref);
Expand Down

0 comments on commit 8b48f55

Please sign in to comment.