Bitbucket pull request diff question

Galit Oshri
Contributor
January 9, 2025

HI,

In PR's diff view we don't see cases that the last empty line is deleted.

Locally we can see that the empty last line was deleted but in Bitbucket we don't

Any suggestion?

Thanks in advance,

 

1 answer

0 votes
Sahir Maharaj
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.
January 12, 2025

Hello @Galit Oshri

If the last empty line deletions aren’t visible in Bitbucket’s PR diff view, it could be related to how Bitbucket processes and renders diffs.

This might be an intentional optimization to ignore insignificant whitespace changes.

P.S. Locally, you can modify your Git diff settings to include such changes using --ignore-space-at-eol or related options.

If you require this level of detail in the Bitbucket diff view, there may be no immediate workaround - you can raise a feature request or contact Atlassian support at https://support.atlassian.com/contact/#/

Galit Oshri
Contributor
January 15, 2025

Hello @Sahir Maharaj ,

Is there setting option to define the diff tool in Bitbucket Server?
We don't see the deletion of the last line in file although the "whitespace changes" and "whitespace characters" is selected.

Thanks,

Galit 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events