when a branch is shown in the "all" history for the first time, show its name #44
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
the commit that is on a freshly started branch (look at it from the bottom, the newer stuff is top the older bottom), have the name show on the commit tile in the list in an accent color, so users see what the branch name was at that time. check if that is possible with the gitea API at all. If this is not possible, then don't try to build something weird, just explain why and comment on this issue and close it. if it is possible (verify by actually using the API from the cli tool for that), implement it.
Implemented in
16ecf68.Gotcha now uses Gitea pull-request metadata already loaded by
gotcha_gitea(head.sha,head.label, andmerge_base) to annotate the first commit made on a pull-request branch. This works for merged branches whose branch ref was deleted, while histories without reliable metadata are left unlabeled rather than guessed.Branch names at both branch tips and branch starts use the same accent-colored presentation. Verified against Gotcha's deleted
codex/ios-appbranch in the iPhone 17 Pro Simulator: the PR head77358cd1and first unique commit6a0c5d7bboth show the accented branch name alongside the correct graph lane.Verification passed:
cargo fmt --all -- --checkRUSTFLAGS="-D warnings" cargo check --workspace --all-targetscargo clippy --workspace --all-targets -- -D warningscargo test --workspace