Unified · Split
| @@ -130,10 +130,10 @@ impl git_repository::odb::Write for OutputWriter { · 129 unmodified lines | ||
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | impl OutputWriter { |
| 133 | − fn new(path: Option<impl AsRef<Path>>, compress: bool, hash_kind: git_repository::hash::Kind) -> Self { | |
| 133 | + fn new(path: Option<impl AsRef<Path>>, compress: bool, object_hash: git_repository::hash::Kind) -> Self { | |
| 134 | 134 | match path { |
| 135 | − Some(path) => OutputWriter::Loose(loose::Store::at(path.as_ref(), hash_kind)), | |
| 136 | − None => OutputWriter::Sink(odb::sink(hash_kind).compress(compress)), | |
| 135 | + Some(path) => OutputWriter::Loose(loose::Store::at(path.as_ref(), object_hash)), | |
| 136 | + None => OutputWriter::Sink(odb::sink(object_hash).compress(compress)), | |
| 137 | 137 | } |
| 138 | 138 | } |
| 139 | 139 | } |
| @@ -85,7 +85,7 @@ pub fn from_pack( · 84 unmodified lines | ||
| 85 | 85 | thread_limit: ctx.thread_limit, |
| 86 | 86 | iteration_mode: ctx.iteration_mode.into(), |
| 87 | 87 | index_kind: pack::index::Version::default(), |
| 88 | − hash_kind: git_repository::hash::Kind::Sha1, // TODO: make this configurable via CLI, context | |
| 88 | + object_hash: git_repository::hash::Kind::Sha1, // TODO: make this configurable via CLI, context | |
| 89 | 89 | }; |
| 90 | 90 | let out = ctx.out; |
| 91 | 91 | let format = ctx.format; |
| @@ -330,7 +330,7 @@ fn receive_pack_blocking<W: io::Write>( · 329 unmodified lines | ||
| 330 | 330 | thread_limit: ctx.thread_limit, |
| 331 | 331 | index_kind: pack::index::Version::V2, |
| 332 | 332 | iteration_mode: pack::data::input::Mode::Verify, |
| 333 | − hash_kind: git_repository::hash::Kind::Sha1, // TODO: make this configurable, but respect the server response as well. | |
| 333 | + object_hash: git_repository::hash::Kind::Sha1, // TODO: make this configurable, but respect the server response as well. | |
| 334 | 334 | }; |
| 335 | 335 | let outcome = |
| 336 | 336 | pack::Bundle::write_to_directory(input, directory.take(), progress, &ctx.should_interrupt, None, options) |