blob: 3bb8734224d95730ffecf1fe5435ed4367326a23 [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';
}