diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-18 22:00:35 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-18 22:00:35 +0000 |
| commit | 56b3c149df70af5d441e8527ec1225e5038bde8e (patch) | |
| tree | a73be853773a342158cb8032571502afdf369374 /src/bin/ngit/sub_commands/init.rs | |
| parent | 09db17fd719ddd42c5afad24e1a8e71735374f8e (diff) | |
fix: remove outdated patch_supports gate and fix fetch parent fallback
Remove the patch_supports_commit_ids gates in checkout.rs and list.rs
that pre-dated the mbox fallback logic. apply_patch_chain already
handles all fallback cases. Also replace the main-branch TODO fallback
in make_commits_for_proposal with get_parent_commit_from_patch, which
uses timestamp-based best-guess when the parent-commit tag is absent.
Diffstat (limited to 'src/bin/ngit/sub_commands/init.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/init.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/bin/ngit/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs index 75306d1..5dd6157 100644 --- a/src/bin/ngit/sub_commands/init.rs +++ b/src/bin/ngit/sub_commands/init.rs | |||
| @@ -1724,10 +1724,7 @@ struct PollContext { | |||
| 1724 | reveal_state: Arc<ServerRevealState>, | 1724 | reveal_state: Arc<ServerRevealState>, |
| 1725 | } | 1725 | } |
| 1726 | 1726 | ||
| 1727 | fn create_server_bars( | 1727 | fn create_server_bars(clone_urls: &[String], detail_multi: &MultiProgress) -> Vec<ProgressBar> { |
| 1728 | clone_urls: &[String], | ||
| 1729 | detail_multi: &MultiProgress, | ||
| 1730 | ) -> Vec<ProgressBar> { | ||
| 1731 | let waiting_style = ProgressStyle::with_template(" {spinner} {msg}") | 1728 | let waiting_style = ProgressStyle::with_template(" {spinner} {msg}") |
| 1732 | .unwrap() | 1729 | .unwrap() |
| 1733 | .tick_chars("⠁⠂⠄⡀⢀⠠⠐⠈"); | 1730 | .tick_chars("⠁⠂⠄⡀⢀⠠⠐⠈"); |
| @@ -1779,12 +1776,7 @@ fn spawn_expand_timer( | |||
| 1779 | }) | 1776 | }) |
| 1780 | } | 1777 | } |
| 1781 | 1778 | ||
| 1782 | fn finalize_spinner( | 1779 | fn finalize_spinner(all_ready: bool, spinner_pb: &ProgressBar, final_ready: u64, total: u64) { |
| 1783 | all_ready: bool, | ||
| 1784 | spinner_pb: &ProgressBar, | ||
| 1785 | final_ready: u64, | ||
| 1786 | total: u64, | ||
| 1787 | ) { | ||
| 1788 | if all_ready { | 1780 | if all_ready { |
| 1789 | spinner_pb.finish_and_clear(); | 1781 | spinner_pb.finish_and_clear(); |
| 1790 | } else { | 1782 | } else { |