| @@ -157,7 +157,7 @@ pub fn main() -> Result<()> { · 156 unmodified lines |
| 157 | 157 | }, |
| 158 | 158 | Subcommands::Repository(repo::Platform { repository, cmd }) => { |
| 159 | 159 | use git_repository as git; |
| 160 | | − let repository = git::open(repository)?.apply_environment(); |
| 160 | + let repository = git::ThreadSafeRepository::open(repository)?; |
| 161 | 161 | match cmd { |
| 162 | 162 | repo::Subcommands::Commit { cmd } => match cmd { |
| 163 | 163 | repo::commit::Subcommands::Describe { |
| @@ -177,7 +177,7 @@ pub fn main() -> Result<()> { · 13 unmodified lines |
| 177 | 177 | None, |
| 178 | 178 | move |_progress, out, err| { |
| 179 | 179 | core::repository::commit::describe( |
| 180 | | − repository, |
| 180 | + repository.into(), |
| 181 | 181 | rev_spec.as_deref(), |
| 182 | 182 | out, |
| 183 | 183 | err, |
| @@ -203,7 +203,7 @@ pub fn main() -> Result<()> { · 19 unmodified lines |
| 203 | 203 | None, |
| 204 | 204 | move |_progress, out, _err| { |
| 205 | 205 | core::repository::exclude::query( |
| 206 | | − repository, |
| 206 | + repository.into(), |
| 207 | 207 | out, |
| 208 | 208 | core::repository::exclude::query::Options { format, pathspecs }, |
| 209 | 209 | ) |
| @@ -217,7 +217,9 @@ pub fn main() -> Result<()> { · 7 unmodified lines |
| 217 | 217 | progress, |
| 218 | 218 | progress_keep_open, |
| 219 | 219 | None, |
| 220 | | − move |_progress, out, err| core::repository::mailmap::entries(repository, format, out, err), |
| 220 | + move |_progress, out, err| { |
| 221 | + core::repository::mailmap::entries(repository.into(), format, out, err) |
| 222 | + }, |
| 221 | 223 | ), |
| 222 | 224 | }, |
| 223 | 225 | repo::Subcommands::Odb { cmd } => match cmd { |
| @@ -227,7 +229,7 @@ pub fn main() -> Result<()> { · 3 unmodified lines |
| 227 | 229 | progress, |
| 228 | 230 | progress_keep_open, |
| 229 | 231 | None, |
| 230 | | − move |_progress, out, _err| core::repository::odb::entries(repository, format, out), |
| 232 | + move |_progress, out, _err| core::repository::odb::entries(repository.into(), format, out), |
| 231 | 233 | ), |
| 232 | 234 | repo::odb::Subcommands::Info => prepare_and_run( |
| 233 | 235 | "repository-odb-info", |
| @@ -235,7 +237,7 @@ pub fn main() -> Result<()> { · 1 unmodified line |
| 235 | 237 | progress, |
| 236 | 238 | progress_keep_open, |
| 237 | 239 | None, |
| 238 | | − move |_progress, out, err| core::repository::odb::info(repository, format, out, err), |
| 240 | + move |_progress, out, err| core::repository::odb::info(repository.into(), format, out, err), |
| 239 | 241 | ), |
| 240 | 242 | }, |
| 241 | 243 | repo::Subcommands::Tree { cmd } => match cmd { |
| @@ -251,7 +253,7 @@ pub fn main() -> Result<()> { · 9 unmodified lines |
| 251 | 253 | None, |
| 252 | 254 | move |_progress, out, _err| { |
| 253 | 255 | core::repository::tree::entries( |
| 254 | | − repository, |
| 256 | + repository.into(), |
| 255 | 257 | treeish.as_deref(), |
| 256 | 258 | recursive, |
| 257 | 259 | extended, |
| @@ -267,7 +269,14 @@ pub fn main() -> Result<()> { · 9 unmodified lines |
| 267 | 269 | progress_keep_open, |
| 268 | 270 | None, |
| 269 | 271 | move |_progress, out, err| { |
| 270 | | − core::repository::tree::info(repository, treeish.as_deref(), extended, format, out, err) |
| 272 | + core::repository::tree::info( |
| 273 | + repository.into(), |
| 274 | + treeish.as_deref(), |
| 275 | + extended, |
| 276 | + format, |
| 277 | + out, |
| 278 | + err, |
| 279 | + ) |
| 271 | 280 | }, |
| 272 | 281 | ), |
| 273 | 282 | }, |
| @@ -287,7 +296,7 @@ pub fn main() -> Result<()> { · 13 unmodified lines |
| 287 | 296 | core::repository::verify::PROGRESS_RANGE, |
| 288 | 297 | move |progress, out, _err| { |
| 289 | 298 | core::repository::verify::integrity( |
| 290 | | − repository, |
| 299 | + repository.into(), |
| 291 | 300 | out, |
| 292 | 301 | progress, |
| 293 | 302 | &should_interrupt, |