getCurrentFileContent method
Reads the current content of relativePath from disk.
Implementation
Future<String> getCurrentFileContent(String relativePath) async {
final repoRoot = await getRepoRoot();
final file = File(p.join(repoRoot, relativePath));
if (!file.existsSync()) {
return '';
}
return file.readAsString();
}