git describe in Sourcetree Edited

Problem:

I would like to have instant access to the "git describe" description of a commit.  When we have a compiled build, it's how we identify the associated source.

For those unfamiliar, it returns (for example): "v1.01-14-g1234abcd", in the format of {Closest Tag}-{Distance from Tag}-g{Hash}.

What I've tried:

I've tried adding a custom action, for script to run: "git", parameters: "describe --long --tags --always $SHA"

However, this opens a command line window that instantly closes.  I'm sure I can work around that with a bash script, but it's really not the easy access I'm looking for.

Ideal:

Is there a way to add a new column in the Log/History viewer (with Graph, Descripton, Date, etc.) where it could show the result of the "git describe --long --tags --always $SHA" command?

Less ideal but good:

Can a custom command appear inside any docked window automatically?

Is there a way to make the "Custom Action" just post a return string in Sourcetree without launching a separate window?  Even if "Show Full Output" is on, Sourectree just lists the command and adds "Completed successfully."

 

1 answer

1 accepted

1 vote

Custom actions are just commands that run in their own windows, much like the underlying Git or Mercurial ones. 

The options you listed aren't currently possible, please vote on or file tickets in https://jira.atlassian.com/SRCTREE and/or https://jira.atlassian.com/SRCTREEWIN.

Brian Ganninger
Senior Mac Developer, Sourcetree

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

790 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you