buildCompareUrl static method
Builds a comparison URL for a file between two refs
Implementation
static String? buildCompareUrl(String? remoteUrl, String? baseRef, String? newRef, String filePath) {
if (remoteUrl == null || baseRef == null || newRef == null) {
return null;
}
final digest = sha256.convert(utf8.encode(filePath));
return '$remoteUrl/compare/$baseRef..$newRef#diff-$digest';
}