Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-3743

"Copy Branch Name to Clipboard" right-click option for sending branch info to coworkers

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      I often want to tell other developers on my team to look at or pull a specific branch. I'll send this branch's text name via email or chat.

      This requires me to type out the branch name. If the branch name is long or complicated, typing it out is very annoying:

      /features/image_carousel/improvement_to_scrolling_hotpatch
      

      The Branch Sidebar's right-click menu should be given a "Copy Branch Name to Clipboard" option. This option will copy the branch's name to your clipboard.

      You can then paste the complicated branch name into your email or chat program.

      This would be similar to the "Copy SHA-1 to Clipboard" option when right-clicking a commit. Extremely useful command in both cases.

          Form Name

            [SRCTREE-3743] "Copy Branch Name to Clipboard" right-click option for sending branch info to coworkers

            I have written an script that takes care of this, by putting a big button next to the branch name of a ticket (with ticket number). It does not require any admin rights to Jira to use. Also I have added displaying the branch name in title of the browser tab. The script does not require any repository integrations to work:

             

            https://github.com/tomaszs/jira-copy-branch-name

            Tomasz Smykowski added a comment - I have written an script that takes care of this, by putting a big button next to the branch name of a ticket (with ticket number). It does not require any admin rights to Jira to use. Also I have added displaying the branch name in title of the browser tab. The script does not require any repository integrations to work:   https://github.com/tomaszs/jira-copy-branch-name

            pkamb added a comment -

            linking the ticket that was created:

             

            Move "Copy Branch Name to Clipboard" to bottom of right-click context menu

            https://jira.atlassian.com/browse/SRCTREE-3887

            pkamb added a comment - linking the ticket that was created:   Move "Copy Branch Name to Clipboard" to bottom of right-click context menu https://jira.atlassian.com/browse/SRCTREE-3887

            Please file ticket(s) to request changes instead of commenting on completed ones. Thanks.

            Brian Ganninger (Inactive) added a comment - Please file ticket(s) to request changes instead of commenting on completed ones. Thanks.

            Would it be possible to move this to the bottom? There is no reason for this to be placed at the top of the right-click context menu.

            Jeremy Anderson added a comment - Would it be possible to move this to the bottom? There is no reason for this to be placed at the top of the right-click context menu.

            Expanded to include remote branches and tags as well.

            Brian Ganninger (Inactive) added a comment - Expanded to include remote branches and tags as well.

              Unassigned Unassigned
              3a38bbfb878e DELETE ME
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: