Does Bitbucket or Fisheye display the hash for specific files (as in "git ls-files -s")?

Nate Bingham June 1, 2016

We are looking for a way to access the hashes of individual files within a commit.  Normally we do this via command line with:

git ls-files -s <insertFileHere>

I assume that Bitbucket would be the place for this functionality, but wouldn't be surprised if it was in Fisheye instead.

Thanks

EDIT: after some searching I think git hash-object is really what I'm after; ls-files just shows this information.

2 answers

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 1, 2016

"git diff-tree -r commit_hash" will give you the hashes. It's already been hashed and stored, so no need to run hash-object again.

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 1, 2016

It's kind of low-level information, I don't see why it would be generally useful. AFAIK neither show it. Why do you want it?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events