Skip to content

Commit

Permalink
move commit-graph implementation into its correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jun 12, 2023
1 parent 8d2e6a9 commit 750b07a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion gitoxide-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ impl FromStr for OutputFormat {

pub mod net;

pub mod commitgraph;
#[cfg(feature = "estimate-hours")]
pub mod hours;
pub mod index;
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct Context<W1: std::io::Write, W2: std::io::Write> {
pub(crate) mod function {
use std::io;

use crate::commitgraph::verify::Context;
use crate::repository::commitgraph::verify::Context;
use crate::OutputFormat;
use anyhow::{Context as AnyhowContext, Result};

Expand Down
1 change: 1 addition & 0 deletions gitoxide-core/src/repository/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub mod fetch;
pub use clone::function::clone;
#[cfg(feature = "blocking-client")]
pub use fetch::function::fetch;
pub mod commitgraph;
pub mod index;
pub mod mailmap;
pub mod odb;
Expand Down
8 changes: 5 additions & 3 deletions src/plumbing/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ pub fn main() -> Result<()> {
progress,
progress_keep_open,
None,
move |_progress, out, _err| core::commitgraph::list(repository(Mode::Lenient)?, spec, out, format),
move |_progress, out, _err| {
core::repository::commitgraph::list(repository(Mode::Lenient)?, spec, out, format)
},
)
.map(|_| ()),
commitgraph::Subcommands::Verify { statistics } => prepare_and_run(
Expand All @@ -147,9 +149,9 @@ pub fn main() -> Result<()> {
None,
move |_progress, out, err| {
let output_statistics = if statistics { Some(format) } else { None };
core::commitgraph::verify(
core::repository::commitgraph::verify(
repository(Mode::Lenient)?,
core::commitgraph::verify::Context {
core::repository::commitgraph::verify::Context {
err,
out,
output_statistics,
Expand Down

0 comments on commit 750b07a

Please sign in to comment.