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

AbstractDiffContentCallback

Stephen Aaskov November 10, 2014

We are developing a commithook plugin to enforce our own repository policies.
We have run into issues regarding line endings and enforcement of a policy. It seems that the AbstractDiffContentCallback interface does not expose the line endings but instead normalized Java strings.

Is this correct? And how can we access the line endning of the individual diff lines in order to enforce a policy ?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
TimP
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.
November 11, 2014

Hi Stephen,

If the Stash service API doesn't give you the output you need, you can always fall back to using the GitCommandBuilderFactory to run your own git commands on the underlying repository. The BlameSuggester uses it to fork a blame and diff commands if you'd like to see an example of it in action.

cheers,

Tim

TAGS
AUG Leaders

Atlassian Community Events