currentBranchName property
Returns the current branch name of the local git repository.
Implementation
Future<String> get currentBranchName async {
final arguments = ['rev-parse', '--abbrev-ref', 'HEAD'];
final processResult = await executeCommand(
arguments: arguments,
);
return (processResult.stdout as String).trim();
}