anchor.diff:  // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file
   // for details. All rights reserved. Use of this source code is governed by a
   // BSD-style license that can be found in the LICENSE file.
  -
  -// @dart=2.10
   
   /// Helper functionality for invoking Git.
   import 'dart:async';
  
positive.code: 
  /// Returns the name of the git command-line app, or `null` if Git could not be
  /// found on the user's PATH.
  String get command {
    if (_commandCache != null) return _commandCache;
  
    if (_tryGitCommand('git')) {
  
negative.code: 
  /// Like [run], but synchronous.
  List<String> runSync(List<String> args,
      {String? workingDir, Map<String, String>? environment}) {
    if (!isInstalled) {
      fail('Cannot find a Git executable.\n'
          'Please ensure Git is correctly installed.');
    }
  
    final result = runProcessSync(command!, args,
        workingDir: workingDir, environment: environment);
    if (!result.success) {
      throw GitException(args, result.stdout.join('\n'), result.stderr.join('\n'),
  