Forums

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

Show renamed files in diffs bitbucket pull request

abdou_test
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!
April 30, 2018

Hi, 

I am fairly a newbie with bitbucket, and i would like to know how to display a "rename" flag on a file within a pull request, like on the example below.

I tried setting my bitbucket server property file "bitbucket.properties" with  

-  plugin.bitbucket-git.diff.renames=renames

 - plugin.bitbucket-git.diff.renames.threshold=50

- plugin.stash-scm-git.diff.renames.KEY.slug 

- plugin.stash-scm-git.diff.renames.KEY

I restarted my bitbucket server and still not able to display the "rename" flag on my pull request.

And this link talks about what i am trying to do except it is for Bitbucket cloud version.

https://blog.bitbucket.org/2016/04/14/updated-diff-view-for-moved-or-renamed-files/

 

1 answer

0 votes
Felipe Kraemer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 2, 2018

Hello @abdou_test,

According to the latest Bitbucket Server documentation, by default, both rename and copy detection are performed. Only files modified in the same commit are considered as rename or copy origins, to minimize overhead.

Can you please check if that's your use case?

Cheers,

Felipe

abdou_test
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!
May 7, 2018

Hi Felipe,

 

thank you for the answer, by testing it a had the expected behavior.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events