blob: 6832b4c8c7f0076581eb2792837f2d2344e91bbb [file] [log] [blame]
// Copyright 2023 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// There are two ways to clone the repository which will be configurable in the
/// repository configuration in .github.
enum GitAccessMethod { SSH, HTTP }
/// Wrapper class to create a revert branch that is comprised of the prefix
/// revert_ and the commit sha so the branch is easily identifiable.
class GitRevertBranchName {
final String _commitSha;
const GitRevertBranchName(this._commitSha);
static const String _branchPrefix = 'revert';
String get branch => '${_branchPrefix}_$_commitSha';
}