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 ?
Community moderators have prevented the ability to post new answers.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.