getLocalBranchName function

Future<String> getLocalBranchName(
  1. String root
)

Implementation

Future<String> getLocalBranchName(String root) => runCommand(
      root,
      'git rev-parse --abbrev-ref HEAD',
    ).then((value) => value.first.stdout.toString().trim());