Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

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

Bitbucket Api v2.0 diff first diff incomplete part of comment @@

BillyL
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!
August 19, 2021

When doing a diff using the url:

https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/diff/{newTag}..{oldTag}?path={path}&context=0&ignore_whitespace=true

The first line of each diff has @@ and includes the first diff as an incomplete .   Looks like it might be doing a substring.

Is there anyway to get the full line like the 2nd and 3rd lines below?

 

@@ -24070,0 +24138,3 @@ INSERT INTO "tax_code" VALUES('IL','','2021-01-01'
+INSERT INTO "tax_code" VALUES('VT','','2021-01-01','2020-12-28');
+INSERT INTO "tax_code" VALUES('MN','','2021-01-01','2020-12-29');

1 answer

0 votes
BillyL
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!
August 19, 2021

Apologize for the question.  It looks like those are comments to the the current line in the previous commit and not the actually new change.  I can omit them from my diff.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events