Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sourcetree commit hash as ID

Hello,

I would like to be able to use the Sourcetree commit hash in my automated fpga build as a unique identifier to ID the automated build.  I've been tasked to use the 40 nibble (hex char) value of the commit hash to do this.

 

I'm a novice Sourcetree user and would like to do the following:

1) In the repo directory structure find the file that contains the commit hash code.

2) copy that hash code into another text file where I have defined a parameter.  This .vh file is also a file in the repo.

3) In place of the existing file, hash_var.vh,  I would like my build script to use this new file and then run the build. 

 

Can you help

1 answer

0 votes
Mikael Sandberg Community Leader Oct 11, 2018

Welcome to the Atlassian Community.

The commit hash is generated by Git, not Sourcetree, and is used to identify your commits. You could try and figure out the hash by looking at the blob object, but you can easily get the commit hash by using the git log command. Take a look at The anatomy of a git commit and Git Basics - Viewing the Commit History to learn more about the commit hash and how to get it.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,246 views 4 5
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you