Skip to content

Commit e49da62

Browse files
committed
adapt to changes in gix
1 parent b31f9bd commit e49da62

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ max = ["max-control", "fast", "gitoxide-core-blocking-client", "http-client-curl
4444
max-pure = ["max-control", "gix-features/rustsha1", "gix-features/zlib-rust-backend", "http-client-reqwest", "gitoxide-core-blocking-client" ]
4545

4646
## Like `max`, but with more control for configuration. See the *Package Maintainers* headline for more information.
47-
max-control = ["tracing", "fast-safe", "pretty-cli", "gitoxide-core-tools-query", "gitoxide-core-tools-corpus", "gitoxide-core-tools", "prodash-render-line", "prodash-render-tui", "prodash/render-line-autoconfigure", "gix/regex" ]
47+
max-control = ["tracing", "fast-safe", "pretty-cli", "gitoxide-core-tools-query", "gitoxide-core-tools-corpus", "gitoxide-core-tools", "prodash-render-line", "prodash-render-tui", "prodash/render-line-autoconfigure", "gix/revparse-regex" ]
4848

4949
## All of the good stuff, with less fanciness for smaller binaries.
5050
##

gitoxide-core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ serde = ["gix/serde", "dep:serde_json", "dep:serde", "bytesize/serde"]
4444

4545
[dependencies]
4646
# deselect everything else (like "performance") as this should be controllable by the parent application.
47-
gix = { version = "^0.53.0", path = "../gix", default-features = false }
48-
gix-pack-for-configuration-only = { package = "gix-pack", version = "^0.41.0", path = "../gix-pack", default-features = false, features = ["pack-cache-lru-dynamic", "pack-cache-lru-static"] }
47+
gix = { version = "^0.53.0", path = "../gix", default-features = false, features = ["blob-diff", "revision", "mailmap", "excludes", "attributes", "worktree-mutation", "credentials"] }
48+
gix-pack-for-configuration-only = { package = "gix-pack", version = "^0.41.0", path = "../gix-pack", default-features = false, features = ["pack-cache-lru-dynamic", "pack-cache-lru-static", "generate", "streaming-input"] }
4949
gix-transport-configuration-only = { package = "gix-transport", version = "^0.35.0", path = "../gix-transport", default-features = false }
5050
gix-archive-for-configuration-only = { package = "gix-archive", version = "^0.3.0", path = "../gix-archive", optional = true, features = ["tar", "tar_gz"] }
5151
serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] }

gitoxide-core/src/repository/exclude.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::borrow::Cow;
22
use std::io;
33

44
use anyhow::{anyhow, bail};
5-
use gix::{bstr::BStr, prelude::FindExt};
5+
use gix::bstr::BStr;
66

77
use crate::{repository::PathsOrPatterns, OutputFormat};
88

@@ -49,7 +49,7 @@ pub fn query(
4949
.metadata()
5050
.ok()
5151
.map(|m| m.is_dir());
52-
let entry = cache.at_entry(path.as_slice(), is_dir, |oid, buf| repo.objects.find_blob(oid, buf))?;
52+
let entry = cache.at_entry(path.as_slice(), is_dir)?;
5353
let match_ = entry
5454
.matching_exclude_pattern()
5555
.and_then(|m| (show_ignore_patterns || !m.pattern.is_negative()).then_some(m));
@@ -68,7 +68,7 @@ pub fn query(
6868
.index_entries_with_paths(&index)
6969
.ok_or_else(|| anyhow!("Pathspec didn't yield any entry"))?
7070
{
71-
let entry = cache.at_entry(path, Some(false), |oid, buf| repo.objects.find_blob(oid, buf))?;
71+
let entry = cache.at_entry(path, Some(false))?;
7272
let match_ = entry
7373
.matching_exclude_pattern()
7474
.and_then(|m| (show_ignore_patterns || !m.pattern.is_negative()).then_some(m));

gix-packetline/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ document-features = { version = "0.2.0", optional = true }
5252

5353
[dev-dependencies]
5454
gix-odb = { path = "../gix-odb" }
55+
gix-pack-for-configuration = { package = "gix-pack", path = "../gix-pack", default-features = false, features = ["streaming-input"] }
5556
gix-hash = { path = "../gix-hash" }
5657
async-std = { version = "1.9.0", features = ["attributes"] }
5758
maybe-async = "0.2.6"

gix/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
//! Entering `git2` into the search field will also surface all methods with such annotations.
6161
//!
6262
//! What follows is a list of methods you might be missing, along with workarounds if available.
63-
//! * [`git2::Repository::open_bare()`](https://docs.rs/git2/*/git2/struct.Repository.html#method.open_bare) ➡ ❌ - use [`open()`] and discard it is not bare.
63+
//! * [`git2::Repository::open_bare()`](https://docs.rs/git2/*/git2/struct.Repository.html#method.open_bare) ➡ ❌ - use [`open()`] and discard if it is not bare.
6464
//! * [`git2::build::CheckoutBuilder::disable_filters()](https://docs.rs/git2/*/git2/build/struct.CheckoutBuilder.html#method.disable_filters) ➡ ❌ *(filters are always applied during checkouts)*
6565
//! * [`git2::Repository::submodule_status()`](https://docs.rs/git2/*/git2/struct.Repository.html#method.submodule_status) ➡ [`Submodule::state()`] - status provides more information and conveniences though, and an actual worktree status isn't performed.
6666
//!

0 commit comments

Comments
 (0)