Skip to content

get-branch support for multiple branches #1

@ibaguio

Description

@ibaguio

the command get-branch <ticket number> returns the first branch from the git branch -a command. This is fine if there exists only one branch for the . But this behavior is not desirable if there are multiple branches for the same ticket number, as we might be interested in another branch, than the one selected.

Here are some suggested improvements, if multiple branches for the same ticket number exists:

  1. return the latest active branch, by comparing the date of the last commit of the branches; or
  2. show the list of branches that match the , and allow the user to choose (via prompt) which branch they want to select.

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