636 B28 lines
Blame
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8import type {CommandArg} from '../types';
9
10import {Operation} from './Operation';
11
12export class CreateEmptyInitialCommitOperation extends Operation {
13 static opName = 'CreateEmptyInitialCommit';
14
15 constructor() {
16 super('CreateEmptyInitialCommit');
17 }
18
19 getArgs(): Array<CommandArg> {
20 return [
21 'commit',
22 {type: 'config', key: 'ui.allowemptycommit', value: 'true'},
23 '--message',
24 'Initial Commit',
25 ];
26 }
27}
28