toInternalString method
Creates a string representation for internal use (e.g., in SourceItem)
Implementation
String toInternalString() {
final pathPart = path != null ? '/$path' : '';
return 'GIT:$uri$pathPart${ref != null ? ':$ref' : ':HEAD'}';
}