gt-gh 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -6
- package/dist/package.json +2 -3
- package/dist/scripts/node_version.js +1 -1
- package/dist/src/actions/checkout_branch.js +1 -1
- package/dist/src/actions/create_pr_body_footer.d.ts +1 -1
- package/dist/src/actions/create_pr_body_footer.js +1 -1
- package/dist/src/actions/create_pr_body_footer.js.map +1 -1
- package/dist/src/actions/init.js +7 -7
- package/dist/src/actions/print_conflict_status.js +2 -2
- package/dist/src/actions/submit/prepare_branches.js +1 -1
- package/dist/src/actions/submit/submit_action.js +1 -1
- package/dist/src/actions/sync/get.js +1 -1
- package/dist/src/actions/sync/get.js.map +1 -1
- package/dist/src/actions/untrack_branch.js +1 -1
- package/dist/src/commands/abort.d.ts +1 -1
- package/dist/src/commands/abort.js +1 -1
- package/dist/src/commands/auth.d.ts +1 -1
- package/dist/src/commands/auth.js +4 -4
- package/dist/src/commands/branch-commands/delete.d.ts +1 -1
- package/dist/src/commands/branch-commands/delete.js +1 -1
- package/dist/src/commands/branch-commands/track.js +2 -2
- package/dist/src/commands/branch-commands/untrack.d.ts +1 -1
- package/dist/src/commands/branch-commands/untrack.js +1 -1
- package/dist/src/commands/checkout.d.ts +4 -4
- package/dist/src/commands/checkout.js +2 -2
- package/dist/src/commands/continue.d.ts +1 -1
- package/dist/src/commands/continue.js +1 -1
- package/dist/src/commands/create.d.ts +8 -8
- package/dist/src/commands/create.js +6 -6
- package/dist/src/commands/delete.d.ts +7 -7
- package/dist/src/commands/delete.js +6 -6
- package/dist/src/commands/get.d.ts +8 -8
- package/dist/src/commands/get.js +4 -4
- package/dist/src/commands/info.d.ts +2 -2
- package/dist/src/commands/info.js +1 -1
- package/dist/src/commands/init.d.ts +1 -1
- package/dist/src/commands/init.js +1 -1
- package/dist/src/commands/log-commands/default.d.ts +1 -1
- package/dist/src/commands/log-commands/default.js +1 -1
- package/dist/src/commands/log-commands/short.d.ts +1 -1
- package/dist/src/commands/log-commands/short.js +1 -1
- package/dist/src/commands/modify.d.ts +8 -8
- package/dist/src/commands/modify.js +7 -7
- package/dist/src/commands/move.d.ts +4 -4
- package/dist/src/commands/move.js +3 -3
- package/dist/src/commands/pr.d.ts +2 -2
- package/dist/src/commands/pr.js +1 -1
- package/dist/src/commands/reorder.d.ts +2 -2
- package/dist/src/commands/reorder.js +2 -2
- package/dist/src/commands/repo-commands/repo_name.d.ts +3 -3
- package/dist/src/commands/repo-commands/repo_name.js +2 -2
- package/dist/src/commands/repo-commands/repo_name.js.map +1 -1
- package/dist/src/commands/repo-commands/repo_owner.d.ts +3 -3
- package/dist/src/commands/repo-commands/repo_owner.js +2 -2
- package/dist/src/commands/repo-commands/repo_owner.js.map +1 -1
- package/dist/src/commands/repo-commands/repo_remote.d.ts +1 -1
- package/dist/src/commands/repo-commands/repo_remote.js +1 -1
- package/dist/src/commands/repo.d.ts +1 -1
- package/dist/src/commands/repo.js +1 -1
- package/dist/src/commands/shared-commands/submit.d.ts +2 -2
- package/dist/src/commands/shared-commands/submit.js +1 -1
- package/dist/src/commands/submit.d.ts +28 -28
- package/dist/src/commands/submit.js +19 -19
- package/dist/src/commands/sync.d.ts +2 -2
- package/dist/src/commands/sync.js +1 -1
- package/dist/src/commands/track.d.ts +1 -1
- package/dist/src/commands/track.js +1 -1
- package/dist/src/commands/trunk.d.ts +4 -4
- package/dist/src/commands/trunk.js +2 -2
- package/dist/src/commands/untrack.d.ts +1 -1
- package/dist/src/commands/untrack.js +1 -1
- package/dist/src/commands/up.d.ts +2 -2
- package/dist/src/commands/up.js +1 -1
- package/dist/src/commands/user-commands/branch_prefix.d.ts +1 -1
- package/dist/src/commands/user-commands/branch_prefix.js +1 -1
- package/dist/src/commands/user-commands/editor.d.ts +5 -5
- package/dist/src/commands/user-commands/editor.js +4 -4
- package/dist/src/commands/user-commands/pager.d.ts +7 -7
- package/dist/src/commands/user-commands/pager.js +5 -5
- package/dist/src/commands/user-commands/tips.d.ts +1 -1
- package/dist/src/commands/user-commands/tips.js +1 -1
- package/dist/src/commands/user.d.ts +1 -1
- package/dist/src/commands/user.js +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/lib/engine/parse_branches_and_meta.js +1 -1
- package/dist/src/lib/errors.js +3 -3
- package/dist/src/lib/runner.js +2 -2
- package/dist/src/lib/spiffy/repo_config_spf.js +4 -4
- package/dist/src/lib/spiffy/repo_config_spf.js.map +1 -1
- package/package.json +2 -3
package/README.md
CHANGED
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt-gh",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "GitHub-only stacked changes CLI compatible with Graphite-style gt commands.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -69,8 +69,7 @@
|
|
|
69
69
|
"README.md"
|
|
70
70
|
],
|
|
71
71
|
"bin": {
|
|
72
|
-
"gt": "dist/src/index.js"
|
|
73
|
-
"gt-gh": "dist/src/index.js"
|
|
72
|
+
"gt": "dist/src/index.js"
|
|
74
73
|
},
|
|
75
74
|
"engines": {
|
|
76
75
|
"node": ">=18"
|
|
@@ -26,7 +26,7 @@ exports.checkoutBranch = checkoutBranch;
|
|
|
26
26
|
function printBranchInfo(branchName, context) {
|
|
27
27
|
if (!context.engine.isTrunk(branchName) &&
|
|
28
28
|
!context.engine.isBranchTracked(branchName)) {
|
|
29
|
-
context.splog.info(`This branch is not tracked by
|
|
29
|
+
context.splog.info(`This branch is not tracked by Graphite.`);
|
|
30
30
|
}
|
|
31
31
|
else if (!context.engine.isBranchFixed(branchName)) {
|
|
32
32
|
context.splog.info(`This branch has fallen behind ${chalk_1.default.blueBright(context.engine.getParentPrecondition(branchName))} - you may want to ${chalk_1.default.cyan(`gt upstack restack`)}.`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TContext } from '../lib/context';
|
|
2
2
|
export declare const footerTitle = "\n\n\n#### PR Dependency Tree\n\n";
|
|
3
|
-
export declare const footerFooter = "\n\nThis tree was auto-generated by [
|
|
3
|
+
export declare const footerFooter = "\n\nThis tree was auto-generated by [Graphite](https://github.com/tianrendong/gt-gh)";
|
|
4
4
|
export declare function createPrBodyFooter(context: TContext, branch: string): string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createPrBodyFooter = exports.footerFooter = exports.footerTitle = void 0;
|
|
4
4
|
exports.footerTitle = '\n\n\n#### PR Dependency Tree\n\n';
|
|
5
|
-
exports.footerFooter = '\n\nThis tree was auto-generated by [
|
|
5
|
+
exports.footerFooter = '\n\nThis tree was auto-generated by [Graphite](https://github.com/tianrendong/gt-gh)';
|
|
6
6
|
function createPrBodyFooter(context, branch) {
|
|
7
7
|
const terminalParent = findTerminalParent(context, branch);
|
|
8
8
|
const tree = buildBranchTree({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create_pr_body_footer.js","sourceRoot":"","sources":["../../../src/actions/create_pr_body_footer.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAG,mCAAmC,CAAC;AAClD,QAAA,YAAY,GACvB,
|
|
1
|
+
{"version":3,"file":"create_pr_body_footer.js","sourceRoot":"","sources":["../../../src/actions/create_pr_body_footer.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAG,mCAAmC,CAAC;AAClD,QAAA,YAAY,GACvB,sFAAsF,CAAC;AAEzF,SAAgB,kBAAkB,CAAC,OAAiB,EAAE,MAAc;IAClE,MAAM,cAAc,GAAG,kBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAE3D,MAAM,IAAI,GAAG,eAAe,CAAC;QAC3B,OAAO;QACP,eAAe,EAAE,CAAC,cAAc,CAAC;QACjC,QAAQ,EAAE,MAAM;QAChB,Y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OAAO,KAAK,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,MAAM,KAC7C,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAChC,EAAE,CAAC;AACL,CAAC;AAED,SAAS,kBAAkB,CAAC,OAAiB,EAAE,aAAqB;IAClE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;IACvD,IAAI,CAAC,MAAM,EAAE;QACX,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;KAC/C;IAED,IAAI,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;QAClC,OAAO,aAAa,CAAC;KACtB;IAED,OAAO,kBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC7C,CAAC;AAED,SAAS,gBAAgB,CACvB,OAAiB,EACjB,MAAc,EACd,MAAc;IAEd,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAEpD,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QAC7B,OAAO,IAAI,CAAC;KACb;IAED,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;QAC5B,IAAI,gBAAgB,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE;YAC5C,OAAO,IAAI,CAAC;SACb;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/src/actions/init.js
CHANGED
|
@@ -12,13 +12,13 @@ const track_branch_1 = require("./track_branch");
|
|
|
12
12
|
async function init(args, context) {
|
|
13
13
|
const allBranchNames = context.engine.allBranchNames;
|
|
14
14
|
context.splog.info(context.repoConfig.graphiteInitialized()
|
|
15
|
-
? `Reinitializing
|
|
16
|
-
: `Welcome to
|
|
15
|
+
? `Reinitializing Graphite...`
|
|
16
|
+
: `Welcome to Graphite!`);
|
|
17
17
|
context.splog.newline();
|
|
18
18
|
if (allBranchNames.length === 0) {
|
|
19
19
|
throw new errors_1.PreconditionsFailedError([
|
|
20
|
-
`No branches found in current repo; cannot initialize
|
|
21
|
-
`Please create your first commit and then re-run your
|
|
20
|
+
`No branches found in current repo; cannot initialize Graphite.`,
|
|
21
|
+
`Please create your first commit and then re-run your Graphite command.`,
|
|
22
22
|
].join('\n'));
|
|
23
23
|
}
|
|
24
24
|
const newTrunkName = (args.trunk ? allBranchNames.find((b) => b === args.trunk) : undefined) ??
|
|
@@ -68,9 +68,9 @@ function findCommonlyNamedTrunk(context) {
|
|
|
68
68
|
}
|
|
69
69
|
async function branchOnboardingFlow(context) {
|
|
70
70
|
context.splog.tip([
|
|
71
|
-
"If you have an existing branch or stack that you'd like to start working on with
|
|
72
|
-
'To add other non-
|
|
73
|
-
'If you only want to use
|
|
71
|
+
"If you have an existing branch or stack that you'd like to start working on with Graphite, you can begin tracking it now!",
|
|
72
|
+
'To add other non-Graphite branches to Graphite later, check out `gt branch track`.',
|
|
73
|
+
'If you only want to use Graphite for new branches, feel free to exit now and use `gt branch create`.',
|
|
74
74
|
].join('\n'));
|
|
75
75
|
if (!(await context.prompts({
|
|
76
76
|
type: 'confirm',
|
|
@@ -22,10 +22,10 @@ function printConflictStatus(errMessage, context) {
|
|
|
22
22
|
(0, log_1.logForConflictStatus)(rebaseHead, context);
|
|
23
23
|
context.splog.newline();
|
|
24
24
|
}
|
|
25
|
-
context.splog.info(chalk_1.default.yellow(`To fix and continue your previous
|
|
25
|
+
context.splog.info(chalk_1.default.yellow(`To fix and continue your previous Graphite command:`));
|
|
26
26
|
context.splog.info(`(1) resolve the listed merge conflicts`);
|
|
27
27
|
context.splog.info(`(2) mark them as resolved with ${chalk_1.default.cyan(`gt add .`)}`);
|
|
28
|
-
context.splog.info(`(3) run ${chalk_1.default.cyan(`gt continue`)} to continue executing your previous
|
|
28
|
+
context.splog.info(`(3) run ${chalk_1.default.cyan(`gt continue`)} to continue executing your previous Graphite command`);
|
|
29
29
|
context.splog.info("It's safe to cancel the ongoing rebase with `gt rebase --abort`.");
|
|
30
30
|
}
|
|
31
31
|
exports.printConflictStatus = printConflictStatus;
|
|
@@ -200,7 +200,7 @@ function cliAuthPrecondition(context) {
|
|
|
200
200
|
const isGhAuthorized = (0, auth_1.getGithubAuthorizationStatus)();
|
|
201
201
|
const isGithubIntegrationEnabled = context.repoConfig.getIsGithubIntegrationEnabled();
|
|
202
202
|
if (isGithubIntegrationEnabled && !isGhAuthorized) {
|
|
203
|
-
throw new errors_1.PreconditionsFailedError(`Please authenticate your CLI with Github by running gt auth and then retry. To ignore this message in the future and use
|
|
203
|
+
throw new errors_1.PreconditionsFailedError(`Please authenticate your CLI with Github by running gt auth and then retry. To ignore this message in the future and use Graphite without Github integration, run gt repo disable-github.`);
|
|
204
204
|
}
|
|
205
205
|
return isGhAuthorized;
|
|
206
206
|
}
|
|
@@ -38,7 +38,7 @@ async function submitAction(args, context) {
|
|
|
38
38
|
const branchNames = args.select
|
|
39
39
|
? await selectBranches(context, allBranchNames)
|
|
40
40
|
: allBranchNames;
|
|
41
|
-
context.splog.info(chalk_1.default.blueBright(`🥞 Validating that this
|
|
41
|
+
context.splog.info(chalk_1.default.blueBright(`🥞 Validating that this Graphite stack is ready to submit...`));
|
|
42
42
|
context.splog.newline();
|
|
43
43
|
await (0, validate_branches_1.validateBranchesToSubmit)(branchNames, context);
|
|
44
44
|
context.splog.info(chalk_1.default.blueBright('✏️ Preparing to submit PRs for the following branches...'));
|
|
@@ -10,7 +10,7 @@ const assert_unreachable_1 = require("../../lib/utils/assert_unreachable");
|
|
|
10
10
|
const persist_continuation_1 = require("../persist_continuation");
|
|
11
11
|
const print_conflict_status_1 = require("../print_conflict_status");
|
|
12
12
|
async function getAction(_args, context) {
|
|
13
|
-
context.splog.message('⚠️ This command is not not yet implemented in
|
|
13
|
+
context.splog.message('⚠️ This command is not not yet implemented in Graphite :-( \n\nPlease check out the issue on GitHub https://github.com/tianrendong/gt-gh/issues/6');
|
|
14
14
|
}
|
|
15
15
|
exports.getAction = getAction;
|
|
16
16
|
async function getBranchesFromRemote(args, context) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../src/actions/sync/get.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,6CAAoE;AACpE,2EAAuE;AACvE,kEAA8D;AAC9D,oEAA+D;AAExD,KAAK,UAAU,SAAS,CAC7B,KAAyD,EACzD,OAAiB;IAEjB,OAAO,CAAC,KAAK,CAAC,OAAO,CACnB,
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../src/actions/sync/get.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,6CAAoE;AACpE,2EAAuE;AACvE,kEAA8D;AAC9D,oEAA+D;AAExD,KAAK,UAAU,SAAS,CAC7B,KAAyD,EACzD,OAAiB;IAEjB,OAAO,CAAC,KAAK,CAAC,OAAO,CACnB,mJAAmJ,CACpJ,CAAC;AACJ,CAAC;AAPD,8BAOC;AAEM,KAAK,UAAU,qBAAqB,CACzC,IAA2D,EAC3D,OAAiB;IAEjB,IAAI,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC;IACjC,KAAK,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,EAAE;QAC1D,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;QACzD,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE;YAC1D,OAAO,CAAC,MAAM,CAAC,yBAAyB,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;YACvE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,eAAK,CAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;SACrE;aAAM,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M,IAAI,oBAAW,EAAE,CAAC;QAC1B;YACE,IAAA,sCAAiB,EAAC,WAAW,CAAC,CAAC;KAClC;AACH,CAAC"}
|
|
@@ -11,7 +11,7 @@ async function untrackBranch({ branchName, force }, context) {
|
|
|
11
11
|
throw new errors_1.ExitFailedError(`Can't untrack trunk!`);
|
|
12
12
|
}
|
|
13
13
|
if (!context.engine.isBranchTracked(branchName)) {
|
|
14
|
-
context.splog.info(`Branch ${chalk_1.default.yellow(branchName)} is not tracked by
|
|
14
|
+
context.splog.info(`Branch ${chalk_1.default.yellow(branchName)} is not tracked by Graphite.`);
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
17
|
const children = context.engine.getChildren(branchName);
|
|
@@ -10,7 +10,7 @@ declare const args: {
|
|
|
10
10
|
declare type argsT = yargs.Arguments<yargs.InferredOptionTypes<typeof args>>;
|
|
11
11
|
export declare const command = "abort";
|
|
12
12
|
export declare const canonical = "abort";
|
|
13
|
-
export declare const description = "Abort the current
|
|
13
|
+
export declare const description = "Abort the current Graphite command halted by a rebase conflict.";
|
|
14
14
|
export declare const builder: {
|
|
15
15
|
readonly force: {
|
|
16
16
|
readonly describe: "Do not prompt for confirmation; abort immediately.";
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
};
|
|
14
14
|
exports.command = 'abort';
|
|
15
15
|
exports.canonical = 'abort';
|
|
16
|
-
exports.description = 'Abort the current
|
|
16
|
+
exports.description = 'Abort the current Graphite command halted by a rebase conflict.';
|
|
17
17
|
exports.builder = args;
|
|
18
18
|
const handler = async (argv) => (0, runner_1.graphite)(argv, exports.canonical, async (context) => {
|
|
19
19
|
if (!argv.force &&
|
|
@@ -9,7 +9,7 @@ declare const args: {
|
|
|
9
9
|
};
|
|
10
10
|
declare type argsT = yargs.Arguments<yargs.InferredOptionTypes<typeof args>>;
|
|
11
11
|
export declare const command = "auth";
|
|
12
|
-
export declare const description = "Authenticate with the GitHub CLI to create and manage PRs in GitHub from
|
|
12
|
+
export declare const description = "Authenticate with the GitHub CLI to create and manage PRs in GitHub from Graphite.";
|
|
13
13
|
export declare const builder: {
|
|
14
14
|
readonly token: {
|
|
15
15
|
readonly type: "string";
|
|
@@ -12,7 +12,7 @@ const args = {
|
|
|
12
12
|
},
|
|
13
13
|
};
|
|
14
14
|
exports.command = 'auth';
|
|
15
|
-
exports.description = 'Authenticate with the GitHub CLI to create and manage PRs in GitHub from
|
|
15
|
+
exports.description = 'Authenticate with the GitHub CLI to create and manage PRs in GitHub from Graphite.';
|
|
16
16
|
exports.builder = args;
|
|
17
17
|
exports.canonical = 'auth';
|
|
18
18
|
const MIN_GH_VERSION = '2.0.0';
|
|
@@ -28,15 +28,15 @@ const handler = async (argv) => {
|
|
|
28
28
|
context.splog.message('✅ Already authenticated with GitHub.');
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
context.splog.message('❌
|
|
31
|
+
context.splog.message('❌ Graphite is not authenticated with GitHub. Please authenticate.');
|
|
32
32
|
try {
|
|
33
33
|
(0, child_process_1.execFileSync)('gh', ['auth', 'login'], {
|
|
34
34
|
stdio: 'inherit',
|
|
35
35
|
});
|
|
36
|
-
context.splog.message('✅ Successfully authenticated
|
|
36
|
+
context.splog.message('✅ Successfully authenticated Graphite with GitHub.');
|
|
37
37
|
}
|
|
38
38
|
catch {
|
|
39
|
-
context.splog.message('❌ Failed to authenticate
|
|
39
|
+
context.splog.message('❌ Failed to authenticate Graphite with GitHub. Please try again.');
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
};
|
|
@@ -20,7 +20,7 @@ declare type argsT = yargs.Arguments<yargs.InferredOptionTypes<typeof args>>;
|
|
|
20
20
|
export declare const aliases: string[];
|
|
21
21
|
export declare const command = "delete [name]";
|
|
22
22
|
export declare const canonical = "branch delete";
|
|
23
|
-
export declare const description = "Delete a branch and its corresponding
|
|
23
|
+
export declare const description = "Delete a branch and its corresponding Graphite metadata.";
|
|
24
24
|
export declare const builder: {
|
|
25
25
|
readonly name: {
|
|
26
26
|
readonly type: "string";
|
|
@@ -23,7 +23,7 @@ const args = {
|
|
|
23
23
|
exports.aliases = ['dl'];
|
|
24
24
|
exports.command = 'delete [name]';
|
|
25
25
|
exports.canonical = 'branch delete';
|
|
26
|
-
exports.description = 'Delete a branch and its corresponding
|
|
26
|
+
exports.description = 'Delete a branch and its corresponding Graphite metadata.';
|
|
27
27
|
exports.builder = args;
|
|
28
28
|
const handler = async (argv) => (0, runner_1.graphite)(argv, exports.canonical, async (context) => (0, delete_branch_1.deleteBranchAction)({ branchName: argv.name, force: argv.force }, context));
|
|
29
29
|
exports.handler = handler;
|
|
@@ -30,8 +30,8 @@ exports.command = 'track [branch]';
|
|
|
30
30
|
exports.canonical = 'branch track';
|
|
31
31
|
exports.aliases = ['tr'];
|
|
32
32
|
exports.description = [
|
|
33
|
-
'Start tracking the current (or provided) branch with
|
|
34
|
-
'This command can also be used to fix corrupted
|
|
33
|
+
'Start tracking the current (or provided) branch with Graphite by selecting its parent.',
|
|
34
|
+
'This command can also be used to fix corrupted Graphite metadata.',
|
|
35
35
|
].join(' ');
|
|
36
36
|
exports.builder = args;
|
|
37
37
|
const handler = async (argv) => (0, runner_1.graphite)(argv, exports.canonical, async (context) => await (0, track_branch_1.trackBranch)({
|
|
@@ -18,7 +18,7 @@ declare type argsT = yargs.Arguments<yargs.InferredOptionTypes<typeof args>>;
|
|
|
18
18
|
export declare const command = "untrack [branch]";
|
|
19
19
|
export declare const canonical = "branch untrack";
|
|
20
20
|
export declare const aliases: string[];
|
|
21
|
-
export declare const description = "Stop tracking a branch with
|
|
21
|
+
export declare const description = "Stop tracking a branch with Graphite. If the branch has children, they will also be untracked. Default to the current branch if none is passed in.";
|
|
22
22
|
export declare const builder: {
|
|
23
23
|
readonly branch: {
|
|
24
24
|
readonly describe: "Branch to stop tracking.";
|
|
@@ -21,7 +21,7 @@ const args = {
|
|
|
21
21
|
exports.command = 'untrack [branch]';
|
|
22
22
|
exports.canonical = 'branch untrack';
|
|
23
23
|
exports.aliases = ['ut'];
|
|
24
|
-
exports.description = 'Stop tracking a branch with
|
|
24
|
+
exports.description = 'Stop tracking a branch with Graphite. If the branch has children, they will also be untracked. Default to the current branch if none is passed in.';
|
|
25
25
|
exports.builder = args;
|
|
26
26
|
const handler = async (argv) => (0, runner_1.graphite)(argv, exports.canonical, async (context) => (0, untrack_branch_1.untrackBranch)({
|
|
27
27
|
branchName: argv.branch ?? context.engine.currentBranchPrecondition,
|
|
@@ -8,7 +8,7 @@ declare const args: {
|
|
|
8
8
|
readonly hidden: true;
|
|
9
9
|
};
|
|
10
10
|
readonly all: {
|
|
11
|
-
readonly describe: "Show branches across all configured trunks.
|
|
11
|
+
readonly describe: "Show branches across all configured trunks. Graphite has one trunk; accepted as no-op.";
|
|
12
12
|
readonly type: "boolean";
|
|
13
13
|
readonly default: false;
|
|
14
14
|
readonly alias: "a";
|
|
@@ -19,7 +19,7 @@ declare const args: {
|
|
|
19
19
|
readonly alias: "u";
|
|
20
20
|
};
|
|
21
21
|
readonly stack: {
|
|
22
|
-
readonly describe: "Only show current stack in interactive selection. Not currently filtered by
|
|
22
|
+
readonly describe: "Only show current stack in interactive selection. Not currently filtered by Graphite.";
|
|
23
23
|
readonly type: "boolean";
|
|
24
24
|
readonly default: false;
|
|
25
25
|
readonly alias: "s";
|
|
@@ -44,7 +44,7 @@ export declare const builder: {
|
|
|
44
44
|
readonly hidden: true;
|
|
45
45
|
};
|
|
46
46
|
readonly all: {
|
|
47
|
-
readonly describe: "Show branches across all configured trunks.
|
|
47
|
+
readonly describe: "Show branches across all configured trunks. Graphite has one trunk; accepted as no-op.";
|
|
48
48
|
readonly type: "boolean";
|
|
49
49
|
readonly default: false;
|
|
50
50
|
readonly alias: "a";
|
|
@@ -55,7 +55,7 @@ export declare const builder: {
|
|
|
55
55
|
readonly alias: "u";
|
|
56
56
|
};
|
|
57
57
|
readonly stack: {
|
|
58
|
-
readonly describe: "Only show current stack in interactive selection. Not currently filtered by
|
|
58
|
+
readonly describe: "Only show current stack in interactive selection. Not currently filtered by Graphite.";
|
|
59
59
|
readonly type: "boolean";
|
|
60
60
|
readonly default: false;
|
|
61
61
|
readonly alias: "s";
|
|
@@ -12,7 +12,7 @@ const args = {
|
|
|
12
12
|
hidden: true,
|
|
13
13
|
},
|
|
14
14
|
all: {
|
|
15
|
-
describe: 'Show branches across all configured trunks.
|
|
15
|
+
describe: 'Show branches across all configured trunks. Graphite has one trunk; accepted as no-op.',
|
|
16
16
|
type: 'boolean',
|
|
17
17
|
default: false,
|
|
18
18
|
alias: 'a',
|
|
@@ -23,7 +23,7 @@ const args = {
|
|
|
23
23
|
alias: 'u',
|
|
24
24
|
},
|
|
25
25
|
stack: {
|
|
26
|
-
describe: 'Only show current stack in interactive selection. Not currently filtered by
|
|
26
|
+
describe: 'Only show current stack in interactive selection. Not currently filtered by Graphite.',
|
|
27
27
|
type: 'boolean',
|
|
28
28
|
default: false,
|
|
29
29
|
alias: 's',
|
|
@@ -12,7 +12,7 @@ declare type argsT = yargs.Arguments<yargs.InferredOptionTypes<typeof args>>;
|
|
|
12
12
|
export declare const command = "continue";
|
|
13
13
|
export declare const canonical = "continue";
|
|
14
14
|
export declare const aliases: string[];
|
|
15
|
-
export declare const description = "Continues the most recent
|
|
15
|
+
export declare const description = "Continues the most recent Graphite command halted by a merge conflict.";
|
|
16
16
|
export declare const builder: {
|
|
17
17
|
readonly all: {
|
|
18
18
|
readonly describe: "Stage all changes before continuing.";
|
|
@@ -15,7 +15,7 @@ const args = {
|
|
|
15
15
|
exports.command = 'continue';
|
|
16
16
|
exports.canonical = 'continue';
|
|
17
17
|
exports.aliases = ['cont'];
|
|
18
|
-
exports.description = 'Continues the most recent
|
|
18
|
+
exports.description = 'Continues the most recent Graphite command halted by a merge conflict.';
|
|
19
19
|
exports.builder = args;
|
|
20
20
|
const handler = async (argv) => (0, runner_1.graphite)(argv, exports.canonical, async (context) => await (0, continue_1.continueAction)({ addAll: argv.all }, context));
|
|
21
21
|
exports.handler = handler;
|
|
@@ -36,7 +36,7 @@ declare const args: {
|
|
|
36
36
|
readonly alias: "i";
|
|
37
37
|
};
|
|
38
38
|
readonly update: {
|
|
39
|
-
readonly describe: "Stage updates to tracked files before creating the branch. Currently treated like --all in
|
|
39
|
+
readonly describe: "Stage updates to tracked files before creating the branch. Currently treated like --all in Graphite.";
|
|
40
40
|
readonly demandOption: false;
|
|
41
41
|
readonly default: false;
|
|
42
42
|
readonly type: "boolean";
|
|
@@ -49,19 +49,19 @@ declare const args: {
|
|
|
49
49
|
readonly alias: "o";
|
|
50
50
|
};
|
|
51
51
|
readonly ai: {
|
|
52
|
-
readonly describe: "Graphite AI branch/message generation is not supported by
|
|
52
|
+
readonly describe: "Graphite AI branch/message generation is not supported by Graphite.";
|
|
53
53
|
readonly demandOption: false;
|
|
54
54
|
readonly default: false;
|
|
55
55
|
readonly type: "boolean";
|
|
56
56
|
};
|
|
57
57
|
readonly 'no-ai': {
|
|
58
|
-
readonly describe: "No-op compatibility flag;
|
|
58
|
+
readonly describe: "No-op compatibility flag; Graphite never uses Graphite AI.";
|
|
59
59
|
readonly demandOption: false;
|
|
60
60
|
readonly default: false;
|
|
61
61
|
readonly type: "boolean";
|
|
62
62
|
};
|
|
63
63
|
readonly verbose: {
|
|
64
|
-
readonly describe: "Show commit diff in editor. Not currently supported by
|
|
64
|
+
readonly describe: "Show commit diff in editor. Not currently supported by Graphite.";
|
|
65
65
|
readonly demandOption: false;
|
|
66
66
|
readonly count: true;
|
|
67
67
|
readonly alias: "v";
|
|
@@ -108,7 +108,7 @@ export declare const builder: {
|
|
|
108
108
|
readonly alias: "i";
|
|
109
109
|
};
|
|
110
110
|
readonly update: {
|
|
111
|
-
readonly describe: "Stage updates to tracked files before creating the branch. Currently treated like --all in
|
|
111
|
+
readonly describe: "Stage updates to tracked files before creating the branch. Currently treated like --all in Graphite.";
|
|
112
112
|
readonly demandOption: false;
|
|
113
113
|
readonly default: false;
|
|
114
114
|
readonly type: "boolean";
|
|
@@ -121,19 +121,19 @@ export declare const builder: {
|
|
|
121
121
|
readonly alias: "o";
|
|
122
122
|
};
|
|
123
123
|
readonly ai: {
|
|
124
|
-
readonly describe: "Graphite AI branch/message generation is not supported by
|
|
124
|
+
readonly describe: "Graphite AI branch/message generation is not supported by Graphite.";
|
|
125
125
|
readonly demandOption: false;
|
|
126
126
|
readonly default: false;
|
|
127
127
|
readonly type: "boolean";
|
|
128
128
|
};
|
|
129
129
|
readonly 'no-ai': {
|
|
130
|
-
readonly describe: "No-op compatibility flag;
|
|
130
|
+
readonly describe: "No-op compatibility flag; Graphite never uses Graphite AI.";
|
|
131
131
|
readonly demandOption: false;
|
|
132
132
|
readonly default: false;
|
|
133
133
|
readonly type: "boolean";
|
|
134
134
|
};
|
|
135
135
|
readonly verbose: {
|
|
136
|
-
readonly describe: "Show commit diff in editor. Not currently supported by
|
|
136
|
+
readonly describe: "Show commit diff in editor. Not currently supported by Graphite.";
|
|
137
137
|
readonly demandOption: false;
|
|
138
138
|
readonly count: true;
|
|
139
139
|
readonly alias: "v";
|
|
@@ -41,7 +41,7 @@ const args = {
|
|
|
41
41
|
alias: 'i',
|
|
42
42
|
},
|
|
43
43
|
update: {
|
|
44
|
-
describe: `Stage updates to tracked files before creating the branch. Currently treated like --all in
|
|
44
|
+
describe: `Stage updates to tracked files before creating the branch. Currently treated like --all in Graphite.`,
|
|
45
45
|
demandOption: false,
|
|
46
46
|
default: false,
|
|
47
47
|
type: 'boolean',
|
|
@@ -54,19 +54,19 @@ const args = {
|
|
|
54
54
|
alias: 'o',
|
|
55
55
|
},
|
|
56
56
|
ai: {
|
|
57
|
-
describe: `Graphite AI branch/message generation is not supported by
|
|
57
|
+
describe: `Graphite AI branch/message generation is not supported by Graphite.`,
|
|
58
58
|
demandOption: false,
|
|
59
59
|
default: false,
|
|
60
60
|
type: 'boolean',
|
|
61
61
|
},
|
|
62
62
|
'no-ai': {
|
|
63
|
-
describe: `No-op compatibility flag;
|
|
63
|
+
describe: `No-op compatibility flag; Graphite never uses Graphite AI.`,
|
|
64
64
|
demandOption: false,
|
|
65
65
|
default: false,
|
|
66
66
|
type: 'boolean',
|
|
67
67
|
},
|
|
68
68
|
verbose: {
|
|
69
|
-
describe: `Show commit diff in editor. Not currently supported by
|
|
69
|
+
describe: `Show commit diff in editor. Not currently supported by Graphite.`,
|
|
70
70
|
demandOption: false,
|
|
71
71
|
count: true,
|
|
72
72
|
alias: 'v',
|
|
@@ -78,10 +78,10 @@ exports.description = 'Create a new branch stacked on top of the current branch
|
|
|
78
78
|
exports.builder = args;
|
|
79
79
|
const handler = async (argv) => (0, runner_1.graphite)(argv, exports.canonical, async (context) => {
|
|
80
80
|
if (argv.ai) {
|
|
81
|
-
throw new errors_1.ExitFailedError('
|
|
81
|
+
throw new errors_1.ExitFailedError('Graphite does not support Graphite AI branch/message generation. Use --message or omit --ai.');
|
|
82
82
|
}
|
|
83
83
|
if (argv.verbose) {
|
|
84
|
-
throw new errors_1.ExitFailedError('
|
|
84
|
+
throw new errors_1.ExitFailedError('Graphite does not support gt create --verbose.');
|
|
85
85
|
}
|
|
86
86
|
if (argv.onto) {
|
|
87
87
|
context.engine.checkoutBranch(argv.onto);
|
|
@@ -9,13 +9,13 @@ declare const args: {
|
|
|
9
9
|
readonly hidden: true;
|
|
10
10
|
};
|
|
11
11
|
readonly close: {
|
|
12
|
-
readonly describe: "Close associated pull requests on GitHub. Not supported by
|
|
12
|
+
readonly describe: "Close associated pull requests on GitHub. Not supported by Graphite delete.";
|
|
13
13
|
readonly type: "boolean";
|
|
14
14
|
readonly default: false;
|
|
15
15
|
readonly alias: "c";
|
|
16
16
|
};
|
|
17
17
|
readonly downstack: {
|
|
18
|
-
readonly describe: "Also delete ancestors. Not supported by
|
|
18
|
+
readonly describe: "Also delete ancestors. Not supported by Graphite delete.";
|
|
19
19
|
readonly type: "boolean";
|
|
20
20
|
readonly default: false;
|
|
21
21
|
};
|
|
@@ -26,7 +26,7 @@ declare const args: {
|
|
|
26
26
|
readonly default: false;
|
|
27
27
|
};
|
|
28
28
|
readonly upstack: {
|
|
29
|
-
readonly describe: "Also delete children. Not supported by
|
|
29
|
+
readonly describe: "Also delete children. Not supported by Graphite delete.";
|
|
30
30
|
readonly type: "boolean";
|
|
31
31
|
readonly default: false;
|
|
32
32
|
};
|
|
@@ -34,7 +34,7 @@ declare const args: {
|
|
|
34
34
|
declare type argsT = yargs.Arguments<yargs.InferredOptionTypes<typeof args>>;
|
|
35
35
|
export declare const command = "delete [name]";
|
|
36
36
|
export declare const canonical = "delete";
|
|
37
|
-
export declare const description = "Delete a branch and its corresponding
|
|
37
|
+
export declare const description = "Delete a branch and its corresponding Graphite metadata.";
|
|
38
38
|
export declare const builder: {
|
|
39
39
|
readonly name: {
|
|
40
40
|
readonly type: "string";
|
|
@@ -45,13 +45,13 @@ export declare const builder: {
|
|
|
45
45
|
readonly hidden: true;
|
|
46
46
|
};
|
|
47
47
|
readonly close: {
|
|
48
|
-
readonly describe: "Close associated pull requests on GitHub. Not supported by
|
|
48
|
+
readonly describe: "Close associated pull requests on GitHub. Not supported by Graphite delete.";
|
|
49
49
|
readonly type: "boolean";
|
|
50
50
|
readonly default: false;
|
|
51
51
|
readonly alias: "c";
|
|
52
52
|
};
|
|
53
53
|
readonly downstack: {
|
|
54
|
-
readonly describe: "Also delete ancestors. Not supported by
|
|
54
|
+
readonly describe: "Also delete ancestors. Not supported by Graphite delete.";
|
|
55
55
|
readonly type: "boolean";
|
|
56
56
|
readonly default: false;
|
|
57
57
|
};
|
|
@@ -62,7 +62,7 @@ export declare const builder: {
|
|
|
62
62
|
readonly default: false;
|
|
63
63
|
};
|
|
64
64
|
readonly upstack: {
|
|
65
|
-
readonly describe: "Also delete children. Not supported by
|
|
65
|
+
readonly describe: "Also delete children. Not supported by Graphite delete.";
|
|
66
66
|
readonly type: "boolean";
|
|
67
67
|
readonly default: false;
|
|
68
68
|
};
|
|
@@ -14,13 +14,13 @@ const args = {
|
|
|
14
14
|
hidden: true,
|
|
15
15
|
},
|
|
16
16
|
close: {
|
|
17
|
-
describe: 'Close associated pull requests on GitHub. Not supported by
|
|
17
|
+
describe: 'Close associated pull requests on GitHub. Not supported by Graphite delete.',
|
|
18
18
|
type: 'boolean',
|
|
19
19
|
default: false,
|
|
20
20
|
alias: 'c',
|
|
21
21
|
},
|
|
22
22
|
downstack: {
|
|
23
|
-
describe: 'Also delete ancestors. Not supported by
|
|
23
|
+
describe: 'Also delete ancestors. Not supported by Graphite delete.',
|
|
24
24
|
type: 'boolean',
|
|
25
25
|
default: false,
|
|
26
26
|
},
|
|
@@ -31,21 +31,21 @@ const args = {
|
|
|
31
31
|
default: false,
|
|
32
32
|
},
|
|
33
33
|
upstack: {
|
|
34
|
-
describe: 'Also delete children. Not supported by
|
|
34
|
+
describe: 'Also delete children. Not supported by Graphite delete.',
|
|
35
35
|
type: 'boolean',
|
|
36
36
|
default: false,
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
39
|
exports.command = 'delete [name]';
|
|
40
40
|
exports.canonical = 'delete';
|
|
41
|
-
exports.description = 'Delete a branch and its corresponding
|
|
41
|
+
exports.description = 'Delete a branch and its corresponding Graphite metadata.';
|
|
42
42
|
exports.builder = args;
|
|
43
43
|
const handler = async (argv) => (0, runner_1.graphite)(argv, exports.canonical, async (context) => {
|
|
44
44
|
if (argv.close) {
|
|
45
|
-
throw new errors_1.ExitFailedError('
|
|
45
|
+
throw new errors_1.ExitFailedError('Graphite does not support gt delete --close.');
|
|
46
46
|
}
|
|
47
47
|
if (argv.downstack || argv.upstack) {
|
|
48
|
-
throw new errors_1.ExitFailedError('
|
|
48
|
+
throw new errors_1.ExitFailedError('Graphite does not support gt delete --downstack or --upstack.');
|
|
49
49
|
}
|
|
50
50
|
const branchName = argv.name ?? context.engine.currentBranchPrecondition;
|
|
51
51
|
return (0, delete_branch_1.deleteBranchAction)({ branchName, force: argv.force }, context);
|