Unified · Split
| @@ -59,8 +59,19 @@ pub(crate) mod function { · 58 unmodified lines | |||
| 59 | Status::NoChange => { | 59 | Status::NoChange => { |
| 60 | crate::repository::remote::refs::print_refmap(&repo, ref_specs, res.ref_map, &mut out, err) | 60 | crate::repository::remote::refs::print_refmap(&repo, ref_specs, res.ref_map, &mut out, err) |
| 61 | } | 61 | } |
| 62 | Status::Change { update_refs, .. } | Status::DryRun { update_refs } => { | 62 | Status::DryRun { update_refs } => print_updates(&repo, update_refs, ref_specs, res.ref_map, &mut out, err), |
| 63 | print_updates(&repo, update_refs, ref_specs, res.ref_map, &mut out, err) | 63 | Status::Change { |
| 64 | update_refs, | ||
| 65 | write_pack_bundle, | ||
| 66 | } => { | ||
| 67 | print_updates(&repo, update_refs, ref_specs, res.ref_map, &mut out, err)?; | ||
| 68 | if let Some(data_path) = write_pack_bundle.data_path { | ||
| 69 | writeln!(out, "pack file: \"{}\"", data_path.display()).ok(); | ||
| 70 | } | ||
| 71 | if let Some(index_path) = write_pack_bundle.index_path { | ||
| 72 | writeln!(out, "index file: \"{}\"", index_path.display()).ok(); | ||
| 73 | } | ||
| 74 | Ok(()) | ||
| 64 | } | 75 | } |
| 65 | }?; | 76 | }?; |
| 66 | if dry_run { | 77 | if dry_run { |