Skip to content

Commit 750b07a

Browse files
committed
move commit-graph implementation into its correct place
1 parent 8d2e6a9 commit 750b07a

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

Diff for: gitoxide-core/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ impl FromStr for OutputFormat {
6565

6666
pub mod net;
6767

68-
pub mod commitgraph;
6968
#[cfg(feature = "estimate-hours")]
7069
pub mod hours;
7170
pub mod index;

Diff for: gitoxide-core/src/commitgraph/verify.rs renamed to gitoxide-core/src/repository/commitgraph/verify.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub struct Context<W1: std::io::Write, W2: std::io::Write> {
1212
pub(crate) mod function {
1313
use std::io;
1414

15-
use crate::commitgraph::verify::Context;
15+
use crate::repository::commitgraph::verify::Context;
1616
use crate::OutputFormat;
1717
use anyhow::{Context as AnyhowContext, Result};
1818

Diff for: gitoxide-core/src/repository/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pub mod fetch;
2525
pub use clone::function::clone;
2626
#[cfg(feature = "blocking-client")]
2727
pub use fetch::function::fetch;
28+
pub mod commitgraph;
2829
pub mod index;
2930
pub mod mailmap;
3031
pub mod odb;

Diff for: src/plumbing/main.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ pub fn main() -> Result<()> {
136136
progress,
137137
progress_keep_open,
138138
None,
139-
move |_progress, out, _err| core::commitgraph::list(repository(Mode::Lenient)?, spec, out, format),
139+
move |_progress, out, _err| {
140+
core::repository::commitgraph::list(repository(Mode::Lenient)?, spec, out, format)
141+
},
140142
)
141143
.map(|_| ()),
142144
commitgraph::Subcommands::Verify { statistics } => prepare_and_run(
@@ -147,9 +149,9 @@ pub fn main() -> Result<()> {
147149
None,
148150
move |_progress, out, err| {
149151
let output_statistics = if statistics { Some(format) } else { None };
150-
core::commitgraph::verify(
152+
core::repository::commitgraph::verify(
151153
repository(Mode::Lenient)?,
152-
core::commitgraph::verify::Context {
154+
core::repository::commitgraph::verify::Context {
153155
err,
154156
out,
155157
output_statistics,

0 commit comments

Comments
 (0)