8000 Add a warning when using `git spr u` on a checked-out remote branch · Issue #96 · ejoffe/spr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add a warning when using git spr u on a checked-out remote branch #96
Closed
@GregoRCodi

Description

@GregoRCodi

Hey!

Would it be possible to add a warning/error message when running git spr update on a branch that looks like a remote auto-generated spr branch (when the current branch has the format pr/username/branchname/commitid)?

One of my team members raised a PR with spr and when they wanted to update it, they checked out the remote branch that was used in the PR (pr/username/branchname/commitid). Then, they amended the commit and ran git spr update again, which created a branch pr/username/pr/username/branchname/commitid/commitid (it correctly used pr/username/branchname/commitid as the local branch name).

I reckon this may be a common mistake newcomers may make, so having a warning when the local branch name matches the format for remote branch names would be great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0