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

Binary file cannot be viewed in diff

HNA-EXTERNAL April 3, 2023

A few lines of binary content are in a plain text file that is useless. (But I don't want to remove it). 

Is there any way that I can compare plain text files with binary info in the diff view?

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2023

G'day!

Welcome to the Bitbucket Cloud community! :)

So that we may assist you further, can you please clarify what is meant by "compare plain text files with binary info"?

The purpose of diff is to show the difference between two files, so if there are changes made in a plaintext file - you should be able to view any content of that plaintext file from within this view. May you share a screenshot?

Cheers!

- Ben (Bitbucket Cloud Support)

HNA-EXTERNAL April 5, 2023

This is a original file view in notepad++. Just the last is binary. And other lines are text.

1.png

If I upload that original file, view of commit diff is like below a picture.

3.png

 

 

And if I upload a modified file that is removed binary line, view of commit diff is like below a picture.

2.png

The binary line is useless for me, so, I want just bitbucket recognizing that original file as text. As a result, I want to see like below picture.(In vscode git-diff extentions)

4.png

(Red line is text diff view of binary data, and it is useless binary diff view, but it's not a problem because that line is also useless infomation to me. 

 

I want to see diff view like last one.

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 11, 2023

Hey,

Sorry for the delay. Just to clarify - you are viewing the diff for a file with the .fac extension that contains binary data which is not being formatted properly in the diff view within Bitbucket Cloud, correct?

Cheers!

- Ben (Bitbucket Cloud Support)

  

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events