Skip to content

Commit

Permalink
refactor: lint git2_opts
Browse files Browse the repository at this point in the history
  • Loading branch information
altsem committed Feb 24, 2024
1 parent 34f6da9 commit be836b1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/git2_opts.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use crate::Res;
use git2;
use git2::Repository;
use git2::{self, Repository, StatusOptions};

pub(crate) fn status(repo: &Repository) -> Res<git2::StatusOptions> {
let mut opts = git2::StatusOptions::new();
pub(crate) fn status(repo: &Repository) -> Res<StatusOptions> {
let mut opts = StatusOptions::new();

opts.include_untracked(
repo.config()?
Expand Down

0 comments on commit be836b1

Please sign in to comment.