We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gix
1 parent 4c5280c commit e3beb8bCopy full SHA for e3beb8b
gitoxide-core/src/repository/exclude.rs
@@ -1,6 +1,6 @@
1
use std::io;
2
3
-use anyhow::{bail, Context};
+use anyhow::bail;
4
use gix::prelude::FindExt;
5
6
use crate::OutputFormat;
@@ -31,11 +31,8 @@ pub fn query(
31
bail!("JSON output isn't implemented yet");
32
}
33
34
- let worktree = repo
35
- .worktree()
36
- .with_context(|| "Cannot check excludes without a current worktree")?;
37
- let index = worktree.index()?;
38
- let mut cache = worktree.excludes(&index, Some(gix::ignore::Search::from_overrides(overrides)))?;
+ let index = repo.index()?;
+ let mut cache = repo.excludes(&index, Some(gix::ignore::Search::from_overrides(overrides)))?;
39
40
let prefix = repo.prefix().expect("worktree - we have an index by now")?;
41
0 commit comments