Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Stash view files at a certain commit

Chason Choate
Contributor
March 7, 2014

I'm struggling with how to view all my files in a repo at a certain commit. I can see commits and see what files changed within that commit but I can not find a way to view the other files at that point in time.

For reference I am looking for the equivilant of github's "Browse Code" link on the commits page.

My use-case is i'm trying to view a deleted file a few commits back.

7 answers

1 accepted

6 votes
Answer accepted
cofarrell
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.
March 7, 2014

Hi Chason,

So there isn't currently a link that lets you do that, but if you don't mind URL hacking you can just add "?at=your_hash_here" to show you the source at a particular commit.

I just whipped this plugin up in a few minutes, is this what you were looking for (see downloads for the jar)?

https://bitbucket.org/cofarrell/stash-browse-code-plugin/overview

Cheers,

Charles

Chason Choate
Contributor
March 9, 2014

Charles,

Thank you for your quick reply and I apologize for my delay. I'll test this and get back to you but it sounds like what I need. Although, i'm a bit concerned that this wasn't already included in the core code. This seems like a fairly common use case. On the other hand i'm impressed it's so easy to make a tweak via a plugin.

Chason Choate
Contributor
March 9, 2014

It does exactly what I expected. Thank you for your help.

3 votes
Guðjón Jónsson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 21, 2015

Why isn't this in the Stash core? Ridiculous.

1 vote
Pierre Radermecker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 24, 2015

I can't believe it ... Any plan to fix this soon ?

0 votes
Marc_Teufel_hama_de
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 22, 2016

I forked the plugin and updated it for Bitbucket Server. See here for the sources: https://bitbucket.org/teufelm/bitbucket-browse-code-plugin   and here for downloading the plugin jar: https://bitbucket.org/teufelm/bitbucket-browse-code-plugin/downloads    

I coded and tested against Bitbucket Server 4.7.1

Greetings from Germany, Marc.

0 votes
cdtapay
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 11, 2015
0 votes
Andy Heathershaw
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 21, 2015

Just found this and still can't believe it's not in Stash (Bitbucket Server) over a year later!

Unfortunately your plugin doesn't work in Stash/Bitbucket Server 4.0 - the resource module is disabled and it says it cannot be modified. The Browse Code link doesn't appear in the commit diff.

0 votes
Warren Frame
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 30, 2015

Would be nice to see this in Stash itself, but kudos to Charles, that plugin is simple enough to use : )

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, forge, forge learning path, atlassian learning, cloud app development, forge app development, build forge apps, atlassian certification, developer training, jira app development, confluence app development, automation, ui frameworks

Turn Ideas into Atlassian Apps 📱

From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.

Start Learning
AUG Leaders

Atlassian Community Events