Skip to content

Branch switcher for Comma four#37739

Closed
mvl-boston wants to merge 3 commits intocommaai:masterfrom
mvl-boston:branch-switcher
Closed

Branch switcher for Comma four#37739
mvl-boston wants to merge 3 commits intocommaai:masterfrom
mvl-boston:branch-switcher

Conversation

@mvl-boston
Copy link
Copy Markdown
Contributor

@mvl-boston mvl-boston commented Mar 28, 2026

Adding a branch switcher for C4.

Without it, drivers have to do full uninstall/reinstall, Requiring long downloads for even a 1-commit difference, and requiring the DM headshakes every time.

Widely used as this is now in all my C4 Honda forks.

Chose to make it a typed branch name, rather than a scroller like C3X, because the C4 scroller templates are horizontal and would take a very long time.

Flow:
Settings -> device -> switch branch -> type in new branch -> enter -> then update

@github-actions github-actions Bot added the ui label Mar 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 28, 2026

Process replay diff report

Replays driving segments through this PR and compares the behavior to master.
Please review any changes carefully to ensure they are expected.

✅ 0 changed, 66 passed, 0 errors

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 28, 2026

UI Preview

mici: ⚠️ Videos differ! View Diff Report
big: ⚠️ Videos differ! View Diff Report

@github-actions
Copy link
Copy Markdown
Contributor

This PR has had no activity for 24 days. It will be automatically closed in 7 days if there is no activity.

@github-actions github-actions Bot added the stale label Apr 22, 2026
Copy link
Copy Markdown
Contributor

@sshane sshane Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might want a software subsection, and use scrolling list of branches like 3X (horizontally), but maybe for later unless @nickorie wants now

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i definitely just want to ship the full thing instead of this. do we have all the ui primitives in place now to make this super easy?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im not familiar enough with the typical user flows for branch switching to make a determination right now of what the best format for the c4 should be. That being said, the only new element this seems like it might need (later) is an icon; otherwise buttons, scrolling text, keyboard, etc. should all be in there between the regular scrollers and the wifi scroller.

@sshane sshane marked this pull request as draft April 22, 2026 09:38
@sshane
Copy link
Copy Markdown
Contributor

sshane commented Apr 22, 2026

Missing logic from three (like IsTestedBranch hiding). Any feedback if wrong typed branch?

@sshane
Copy link
Copy Markdown
Contributor

sshane commented Apr 22, 2026

BTW you don't need to reclone to switch branches

git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"

from https://stackoverflow.com/questions/6802145/how-to-convert-a-git-shallow-clone-to-a-full-clone

@adeebshihadeh
Copy link
Copy Markdown
Contributor

Thanks for the PR, moving it here: #37894

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants