Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

git --follow type option for fisheye/crucible?

Javier Perez
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.
May 18, 2015

Issue: We have a review where most of the changes are due to re-organization of the files: either files moved to a directory or renamed. And then a few edits. Those renamed files don't show any diff in crucible, they only show the end result of the file, as if it is a brand new added. If the file is not renamed nor moved, then the diffs are shown correctly.

Related to this, git log has a --follow option, that shows history of a  file before it was renamed.


Question: Is there a similar option with fisheye so that it can follow the file's history before it was renamed?

2 answers

1 accepted

0 votes
Answer accepted
Javier Perez
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.
May 18, 2015

Well, apparently it's not possible

https://jira.atlassian.com/browse/CRUC-5768

Opened 4 years ago....

0 votes
gustavo_refosco
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.
May 18, 2015

Hi Javier,

You can change the way Crucible detects renames in your Git repository.

For this go to Crucible Administration > Repositories, open your repository configuration and go to SCM Details. Here you can edit the Rename Detection option. Changing it to detailed, for instance, will make Crucible to detect the rename as a change - it will still show the old name as a deletion, but you could just remove it from the review created, as when creating a review on top of this commit it will add both the renamed (changed) file as well as the deleted one. 

Please notice that when changing this setting and saving it Crucible will prompt you for a restart on the repository. This will not be enough to make files already indexed to be shown as changes - if you want them to be shown this way, a full re-index will be required (repo settings > Maintenance > Re-clone and Re-index).

You can check further on this and other Git options at https://confluence.atlassian.com/display/FISHEYE/Git.

Regards,

Gustavo Refosco

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events