@procedures/git 0.33.0 → 0.35.0
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/CHANGELOG.md +37 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +93 -93
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
- package/src/module.ts +93 -93
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@procedures/git",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.35.0",
|
|
5
5
|
"description": "Git as 45 typed procedures: status, diff, log, show, blame, commit, push, pull, branch, tag, merge, rebase, worktree, stash and more, run with argv, async and abortable.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"git",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"procedures": "./dist/register.js"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@procedures/client": "0.
|
|
64
|
-
"@procedures/fs": "0.
|
|
65
|
-
"@procedures/shell": "0.
|
|
63
|
+
"@procedures/client": "0.35.0",
|
|
64
|
+
"@procedures/fs": "0.35.0",
|
|
65
|
+
"@procedures/shell": "0.35.0",
|
|
66
66
|
"zod": "^4.6.5"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
package/src/module.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* This file is referenced by package.json's client.procedures field.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import { createProcedure,
|
|
10
|
+
import { createProcedure, defineModule, type AnyProcedure, type Effects, type FsRootRules, type ProcedureContext, type ProcedureModule, PROCEDURE_REGISTRY, registerModules, type ProcedureRegistry } from "@procedures/client";
|
|
11
11
|
import { underGitRoot } from "./procedures/git/root.js";
|
|
12
12
|
import { gitStatus } from "./procedures/git/status.js";
|
|
13
13
|
import { gitAdd } from "./procedures/git/add.js";
|
|
@@ -299,8 +299,8 @@ function underARoot(procedure: AnyProcedure): AnyProcedure {
|
|
|
299
299
|
|
|
300
300
|
const gitStatusProcedure = createProcedure()
|
|
301
301
|
.path(["git", "status"])
|
|
302
|
-
.input(
|
|
303
|
-
.output(
|
|
302
|
+
.input(GitStatusInputSchema)
|
|
303
|
+
.output(GitStatusOutputSchema)
|
|
304
304
|
.meta({
|
|
305
305
|
description: "Get git status",
|
|
306
306
|
args: ["paths"],
|
|
@@ -315,8 +315,8 @@ const gitStatusProcedure = createProcedure()
|
|
|
315
315
|
|
|
316
316
|
const gitAddProcedure = createProcedure()
|
|
317
317
|
.path(["git", "add"])
|
|
318
|
-
.input(
|
|
319
|
-
.output(
|
|
318
|
+
.input(GitAddInputSchema)
|
|
319
|
+
.output(GitAddOutputSchema)
|
|
320
320
|
.meta({
|
|
321
321
|
description: "Stage files",
|
|
322
322
|
args: ["paths"],
|
|
@@ -331,8 +331,8 @@ const gitAddProcedure = createProcedure()
|
|
|
331
331
|
|
|
332
332
|
const gitCommitProcedure = createProcedure()
|
|
333
333
|
.path(["git", "commit"])
|
|
334
|
-
.input(
|
|
335
|
-
.output(
|
|
334
|
+
.input(GitCommitInputSchema)
|
|
335
|
+
.output(GitCommitOutputSchema)
|
|
336
336
|
.meta({
|
|
337
337
|
description: "Create commit",
|
|
338
338
|
args: ["message"],
|
|
@@ -348,8 +348,8 @@ const gitCommitProcedure = createProcedure()
|
|
|
348
348
|
|
|
349
349
|
const gitPushProcedure = createProcedure()
|
|
350
350
|
.path(["git", "push"])
|
|
351
|
-
.input(
|
|
352
|
-
.output(
|
|
351
|
+
.input(GitPushInputSchema)
|
|
352
|
+
.output(GitPushOutputSchema)
|
|
353
353
|
.meta({
|
|
354
354
|
description: "Push to remote",
|
|
355
355
|
args: [],
|
|
@@ -365,8 +365,8 @@ const gitPushProcedure = createProcedure()
|
|
|
365
365
|
|
|
366
366
|
const gitPullProcedure = createProcedure()
|
|
367
367
|
.path(["git", "pull"])
|
|
368
|
-
.input(
|
|
369
|
-
.output(
|
|
368
|
+
.input(GitPullInputSchema)
|
|
369
|
+
.output(GitPullOutputSchema)
|
|
370
370
|
.meta({
|
|
371
371
|
description: "Pull from remote",
|
|
372
372
|
args: [],
|
|
@@ -382,8 +382,8 @@ const gitPullProcedure = createProcedure()
|
|
|
382
382
|
|
|
383
383
|
const gitCloneProcedure = createProcedure()
|
|
384
384
|
.path(["git", "clone"])
|
|
385
|
-
.input(
|
|
386
|
-
.output(
|
|
385
|
+
.input(GitCloneInputSchema)
|
|
386
|
+
.output(GitCloneOutputSchema)
|
|
387
387
|
.meta({
|
|
388
388
|
description: "Clone repository",
|
|
389
389
|
args: ["url"],
|
|
@@ -399,8 +399,8 @@ const gitCloneProcedure = createProcedure()
|
|
|
399
399
|
|
|
400
400
|
const gitCheckoutProcedure = createProcedure()
|
|
401
401
|
.path(["git", "checkout"])
|
|
402
|
-
.input(
|
|
403
|
-
.output(
|
|
402
|
+
.input(GitCheckoutInputSchema)
|
|
403
|
+
.output(GitCheckoutOutputSchema)
|
|
404
404
|
.meta({
|
|
405
405
|
description: "Checkout branch or files",
|
|
406
406
|
args: ["ref"],
|
|
@@ -416,8 +416,8 @@ const gitCheckoutProcedure = createProcedure()
|
|
|
416
416
|
|
|
417
417
|
const gitBranchProcedure = createProcedure()
|
|
418
418
|
.path(["git", "branch"])
|
|
419
|
-
.input(
|
|
420
|
-
.output(
|
|
419
|
+
.input(GitBranchInputSchema)
|
|
420
|
+
.output(GitBranchOutputSchema)
|
|
421
421
|
.meta({
|
|
422
422
|
description: "Deprecated: use git.branch.list, git.branch.add or git.branch.delete. Branch operations",
|
|
423
423
|
// Roadmap R40: it stays for one release, and calls the code of the three new procedures
|
|
@@ -436,8 +436,8 @@ const gitBranchProcedure = createProcedure()
|
|
|
436
436
|
|
|
437
437
|
const gitLogProcedure = createProcedure()
|
|
438
438
|
.path(["git", "log"])
|
|
439
|
-
.input(
|
|
440
|
-
.output(
|
|
439
|
+
.input(GitLogInputSchema)
|
|
440
|
+
.output(GitLogOutputSchema)
|
|
441
441
|
.meta({
|
|
442
442
|
description: "Show commit log",
|
|
443
443
|
args: [],
|
|
@@ -452,8 +452,8 @@ const gitLogProcedure = createProcedure()
|
|
|
452
452
|
|
|
453
453
|
const gitDiffProcedure = createProcedure()
|
|
454
454
|
.path(["git", "diff"])
|
|
455
|
-
.input(
|
|
456
|
-
.output(
|
|
455
|
+
.input(GitDiffInputSchema)
|
|
456
|
+
.output(GitDiffOutputSchema)
|
|
457
457
|
.meta({
|
|
458
458
|
description: "Show changes",
|
|
459
459
|
args: [],
|
|
@@ -469,8 +469,8 @@ const gitDiffProcedure = createProcedure()
|
|
|
469
469
|
|
|
470
470
|
const gitInitProcedure = createProcedure()
|
|
471
471
|
.path(["git", "init"])
|
|
472
|
-
.input(
|
|
473
|
-
.output(
|
|
472
|
+
.input(GitInitInputSchema)
|
|
473
|
+
.output(GitInitOutputSchema)
|
|
474
474
|
.meta({
|
|
475
475
|
description: "Initialize a git repository",
|
|
476
476
|
args: [],
|
|
@@ -486,8 +486,8 @@ const gitInitProcedure = createProcedure()
|
|
|
486
486
|
|
|
487
487
|
const gitRemoteProcedure = createProcedure()
|
|
488
488
|
.path(["git", "remote"])
|
|
489
|
-
.input(
|
|
490
|
-
.output(
|
|
489
|
+
.input(GitRemoteInputSchema)
|
|
490
|
+
.output(GitRemoteOutputSchema)
|
|
491
491
|
.meta({
|
|
492
492
|
description: "Get the URL of a remote",
|
|
493
493
|
args: [],
|
|
@@ -502,8 +502,8 @@ const gitRemoteProcedure = createProcedure()
|
|
|
502
502
|
|
|
503
503
|
const gitRemoteSetProcedure = createProcedure()
|
|
504
504
|
.path(["git", "remote", "set"])
|
|
505
|
-
.input(
|
|
506
|
-
.output(
|
|
505
|
+
.input(GitRemoteSetInputSchema)
|
|
506
|
+
.output(GitRemoteOutputSchema)
|
|
507
507
|
.meta({
|
|
508
508
|
description: "Set the URL of a remote, or add the remote",
|
|
509
509
|
args: ["url"],
|
|
@@ -519,8 +519,8 @@ const gitRemoteSetProcedure = createProcedure()
|
|
|
519
519
|
|
|
520
520
|
const gitFetchProcedure = createProcedure()
|
|
521
521
|
.path(["git", "fetch"])
|
|
522
|
-
.input(
|
|
523
|
-
.output(
|
|
522
|
+
.input(GitFetchInputSchema)
|
|
523
|
+
.output(GitFetchOutputSchema)
|
|
524
524
|
.meta({
|
|
525
525
|
description: "Fetch from remote",
|
|
526
526
|
args: [],
|
|
@@ -540,8 +540,8 @@ const gitFetchProcedure = createProcedure()
|
|
|
540
540
|
|
|
541
541
|
const gitHasChangesProcedure = createProcedure()
|
|
542
542
|
.path(["git", "hasChanges"])
|
|
543
|
-
.input(
|
|
544
|
-
.output(
|
|
543
|
+
.input(GitPredicateInputSchema)
|
|
544
|
+
.output(GitPredicateOutputSchema)
|
|
545
545
|
.meta({
|
|
546
546
|
description: "Check if there are any changes (unstaged, staged, or untracked)",
|
|
547
547
|
args: [],
|
|
@@ -556,8 +556,8 @@ const gitHasChangesProcedure = createProcedure()
|
|
|
556
556
|
|
|
557
557
|
const gitHasStagedChangesProcedure = createProcedure()
|
|
558
558
|
.path(["git", "hasStagedChanges"])
|
|
559
|
-
.input(
|
|
560
|
-
.output(
|
|
559
|
+
.input(GitPredicateInputSchema)
|
|
560
|
+
.output(GitPredicateOutputSchema)
|
|
561
561
|
.meta({
|
|
562
562
|
description: "Check if there are any staged changes ready to commit",
|
|
563
563
|
args: [],
|
|
@@ -572,8 +572,8 @@ const gitHasStagedChangesProcedure = createProcedure()
|
|
|
572
572
|
|
|
573
573
|
const gitHasUnstagedChangesProcedure = createProcedure()
|
|
574
574
|
.path(["git", "hasUnstagedChanges"])
|
|
575
|
-
.input(
|
|
576
|
-
.output(
|
|
575
|
+
.input(GitPredicateInputSchema)
|
|
576
|
+
.output(GitPredicateOutputSchema)
|
|
577
577
|
.meta({
|
|
578
578
|
description: "Check if there are any unstaged changes",
|
|
579
579
|
args: [],
|
|
@@ -588,8 +588,8 @@ const gitHasUnstagedChangesProcedure = createProcedure()
|
|
|
588
588
|
|
|
589
589
|
const gitHasUntrackedFilesProcedure = createProcedure()
|
|
590
590
|
.path(["git", "hasUntrackedFiles"])
|
|
591
|
-
.input(
|
|
592
|
-
.output(
|
|
591
|
+
.input(GitPredicateInputSchema)
|
|
592
|
+
.output(GitPredicateOutputSchema)
|
|
593
593
|
.meta({
|
|
594
594
|
description: "Check if there are any untracked files",
|
|
595
595
|
args: [],
|
|
@@ -604,8 +604,8 @@ const gitHasUntrackedFilesProcedure = createProcedure()
|
|
|
604
604
|
|
|
605
605
|
const gitHasLocalCommitsProcedure = createProcedure()
|
|
606
606
|
.path(["git", "hasLocalCommits"])
|
|
607
|
-
.input(
|
|
608
|
-
.output(
|
|
607
|
+
.input(GitPredicateInputSchema)
|
|
608
|
+
.output(GitPredicateOutputSchema)
|
|
609
609
|
.meta({
|
|
610
610
|
description: "Check if there are local commits that haven't been pushed",
|
|
611
611
|
args: [],
|
|
@@ -621,8 +621,8 @@ const gitHasLocalCommitsProcedure = createProcedure()
|
|
|
621
621
|
|
|
622
622
|
const gitIsCleanProcedure = createProcedure()
|
|
623
623
|
.path(["git", "isClean"])
|
|
624
|
-
.input(
|
|
625
|
-
.output(
|
|
624
|
+
.input(GitPredicateInputSchema)
|
|
625
|
+
.output(GitPredicateOutputSchema)
|
|
626
626
|
.meta({
|
|
627
627
|
description: "Check if the working directory is clean",
|
|
628
628
|
args: [],
|
|
@@ -641,8 +641,8 @@ const gitIsCleanProcedure = createProcedure()
|
|
|
641
641
|
|
|
642
642
|
const gitStashListProcedure = createProcedure()
|
|
643
643
|
.path(["git", "stash", "list"])
|
|
644
|
-
.input(
|
|
645
|
-
.output(
|
|
644
|
+
.input(GitStashListInputSchema)
|
|
645
|
+
.output(GitStashListOutputSchema)
|
|
646
646
|
.meta({
|
|
647
647
|
description: "List all stashes",
|
|
648
648
|
args: [],
|
|
@@ -657,8 +657,8 @@ const gitStashListProcedure = createProcedure()
|
|
|
657
657
|
|
|
658
658
|
const gitStashPushProcedure = createProcedure()
|
|
659
659
|
.path(["git", "stash", "push"])
|
|
660
|
-
.input(
|
|
661
|
-
.output(
|
|
660
|
+
.input(GitStashPushInputSchema)
|
|
661
|
+
.output(GitStashPushOutputSchema)
|
|
662
662
|
.meta({
|
|
663
663
|
description: "Push changes to stash",
|
|
664
664
|
args: ["message"],
|
|
@@ -674,8 +674,8 @@ const gitStashPushProcedure = createProcedure()
|
|
|
674
674
|
|
|
675
675
|
const gitStashPopProcedure = createProcedure()
|
|
676
676
|
.path(["git", "stash", "pop"])
|
|
677
|
-
.input(
|
|
678
|
-
.output(
|
|
677
|
+
.input(GitStashPopInputSchema)
|
|
678
|
+
.output(GitStashPopOutputSchema)
|
|
679
679
|
.meta({
|
|
680
680
|
description: "Pop stash (apply and remove)",
|
|
681
681
|
args: [],
|
|
@@ -690,8 +690,8 @@ const gitStashPopProcedure = createProcedure()
|
|
|
690
690
|
|
|
691
691
|
const gitStashApplyProcedure = createProcedure()
|
|
692
692
|
.path(["git", "stash", "apply"])
|
|
693
|
-
.input(
|
|
694
|
-
.output(
|
|
693
|
+
.input(GitStashApplyInputSchema)
|
|
694
|
+
.output(GitStashApplyOutputSchema)
|
|
695
695
|
.meta({
|
|
696
696
|
description: "Apply stash without removing",
|
|
697
697
|
args: [],
|
|
@@ -706,8 +706,8 @@ const gitStashApplyProcedure = createProcedure()
|
|
|
706
706
|
|
|
707
707
|
const gitStashDropProcedure = createProcedure()
|
|
708
708
|
.path(["git", "stash", "drop"])
|
|
709
|
-
.input(
|
|
710
|
-
.output(
|
|
709
|
+
.input(GitStashDropInputSchema)
|
|
710
|
+
.output(GitStashDropOutputSchema)
|
|
711
711
|
.meta({
|
|
712
712
|
description: "Drop a stash",
|
|
713
713
|
args: [],
|
|
@@ -722,8 +722,8 @@ const gitStashDropProcedure = createProcedure()
|
|
|
722
722
|
|
|
723
723
|
const gitStashExportProcedure = createProcedure()
|
|
724
724
|
.path(["git", "stash", "export"])
|
|
725
|
-
.input(
|
|
726
|
-
.output(
|
|
725
|
+
.input(GitStashExportInputSchema)
|
|
726
|
+
.output(GitStashExportOutputSchema)
|
|
727
727
|
.meta({
|
|
728
728
|
description: "Export stash as patch for snapshot storage",
|
|
729
729
|
args: [],
|
|
@@ -738,8 +738,8 @@ const gitStashExportProcedure = createProcedure()
|
|
|
738
738
|
|
|
739
739
|
const gitStashImportProcedure = createProcedure()
|
|
740
740
|
.path(["git", "stash", "import"])
|
|
741
|
-
.input(
|
|
742
|
-
.output(
|
|
741
|
+
.input(GitStashImportInputSchema)
|
|
742
|
+
.output(GitStashImportOutputSchema)
|
|
743
743
|
.meta({
|
|
744
744
|
description: "Import stash from patch",
|
|
745
745
|
args: ["patch"],
|
|
@@ -768,8 +768,8 @@ const DELETES: Effects = { reads: ["fs"], writes: ["fs"], destructive: true, ide
|
|
|
768
768
|
|
|
769
769
|
const gitShowProcedure = createProcedure()
|
|
770
770
|
.path(["git", "show"])
|
|
771
|
-
.input(
|
|
772
|
-
.output(
|
|
771
|
+
.input(GitShowInputSchema)
|
|
772
|
+
.output(GitShowOutputSchema)
|
|
773
773
|
.meta({
|
|
774
774
|
description: "Show a commit (its fields, files and diff), or a file at a commit",
|
|
775
775
|
args: ["ref"],
|
|
@@ -782,8 +782,8 @@ const gitShowProcedure = createProcedure()
|
|
|
782
782
|
|
|
783
783
|
const gitBlameProcedure = createProcedure()
|
|
784
784
|
.path(["git", "blame"])
|
|
785
|
-
.input(
|
|
786
|
-
.output(
|
|
785
|
+
.input(GitBlameInputSchema)
|
|
786
|
+
.output(GitBlameOutputSchema)
|
|
787
787
|
.meta({
|
|
788
788
|
description: "Show the commit and the author of each line of a file",
|
|
789
789
|
args: ["path"],
|
|
@@ -796,8 +796,8 @@ const gitBlameProcedure = createProcedure()
|
|
|
796
796
|
|
|
797
797
|
const gitTagListProcedure = createProcedure()
|
|
798
798
|
.path(["git", "tag", "list"])
|
|
799
|
-
.input(
|
|
800
|
-
.output(
|
|
799
|
+
.input(GitTagListInputSchema)
|
|
800
|
+
.output(GitTagListOutputSchema)
|
|
801
801
|
.meta({
|
|
802
802
|
description: "List the tags, with their commits",
|
|
803
803
|
args: ["pattern"],
|
|
@@ -810,8 +810,8 @@ const gitTagListProcedure = createProcedure()
|
|
|
810
810
|
|
|
811
811
|
const gitTagAddProcedure = createProcedure()
|
|
812
812
|
.path(["git", "tag", "add"])
|
|
813
|
-
.input(
|
|
814
|
-
.output(
|
|
813
|
+
.input(GitTagAddInputSchema)
|
|
814
|
+
.output(GitTagAddOutputSchema)
|
|
815
815
|
.meta({
|
|
816
816
|
description: "Make a tag. With a message, the tag is annotated. An existing tag is an error",
|
|
817
817
|
args: ["name", "ref"],
|
|
@@ -824,8 +824,8 @@ const gitTagAddProcedure = createProcedure()
|
|
|
824
824
|
|
|
825
825
|
const gitTagDeleteProcedure = createProcedure()
|
|
826
826
|
.path(["git", "tag", "delete"])
|
|
827
|
-
.input(
|
|
828
|
-
.output(
|
|
827
|
+
.input(GitTagDeleteInputSchema)
|
|
828
|
+
.output(GitTagDeleteOutputSchema)
|
|
829
829
|
.meta({
|
|
830
830
|
description: "Delete a tag",
|
|
831
831
|
args: ["name"],
|
|
@@ -838,8 +838,8 @@ const gitTagDeleteProcedure = createProcedure()
|
|
|
838
838
|
|
|
839
839
|
const gitRevParseProcedure = createProcedure()
|
|
840
840
|
.path(["git", "revParse"])
|
|
841
|
-
.input(
|
|
842
|
-
.output(
|
|
841
|
+
.input(GitRevParseInputSchema)
|
|
842
|
+
.output(GitRevParseOutputSchema)
|
|
843
843
|
.meta({
|
|
844
844
|
description: "Give the hash or the short name of a ref. An unknown ref is an error",
|
|
845
845
|
args: ["ref"],
|
|
@@ -852,8 +852,8 @@ const gitRevParseProcedure = createProcedure()
|
|
|
852
852
|
|
|
853
853
|
const gitResetProcedure = createProcedure()
|
|
854
854
|
.path(["git", "reset"])
|
|
855
|
-
.input(
|
|
856
|
-
.output(
|
|
855
|
+
.input(GitResetInputSchema)
|
|
856
|
+
.output(GitResetOutputSchema)
|
|
857
857
|
.meta({
|
|
858
858
|
description: "Move HEAD to a commit, and reset the index (mixed) or also the working tree (hard)",
|
|
859
859
|
args: ["ref"],
|
|
@@ -868,8 +868,8 @@ const gitResetProcedure = createProcedure()
|
|
|
868
868
|
|
|
869
869
|
const gitRestoreProcedure = createProcedure()
|
|
870
870
|
.path(["git", "restore"])
|
|
871
|
-
.input(
|
|
872
|
-
.output(
|
|
871
|
+
.input(GitRestoreInputSchema)
|
|
872
|
+
.output(GitRestoreOutputSchema)
|
|
873
873
|
.meta({
|
|
874
874
|
description: "Restore files of the working tree or the index. The changes of the files are lost",
|
|
875
875
|
args: ["paths"],
|
|
@@ -883,8 +883,8 @@ const gitRestoreProcedure = createProcedure()
|
|
|
883
883
|
|
|
884
884
|
const gitMergeProcedure = createProcedure()
|
|
885
885
|
.path(["git", "merge"])
|
|
886
|
-
.input(
|
|
887
|
-
.output(
|
|
886
|
+
.input(GitMergeInputSchema)
|
|
887
|
+
.output(GitMergeOutputSchema)
|
|
888
888
|
.meta({
|
|
889
889
|
description: "Merge a branch or a commit into the current branch. Conflicts give conflict: true",
|
|
890
890
|
args: ["ref"],
|
|
@@ -898,8 +898,8 @@ const gitMergeProcedure = createProcedure()
|
|
|
898
898
|
|
|
899
899
|
const gitMergeAbortProcedure = createProcedure()
|
|
900
900
|
.path(["git", "merge", "abort"])
|
|
901
|
-
.input(
|
|
902
|
-
.output(
|
|
901
|
+
.input(GitMergeAbortInputSchema)
|
|
902
|
+
.output(GitMergeAbortOutputSchema)
|
|
903
903
|
.meta({
|
|
904
904
|
description: "Stop a merge that has conflicts, and put back the state before it",
|
|
905
905
|
args: [],
|
|
@@ -913,8 +913,8 @@ const gitMergeAbortProcedure = createProcedure()
|
|
|
913
913
|
|
|
914
914
|
const gitRebaseProcedure = createProcedure()
|
|
915
915
|
.path(["git", "rebase"])
|
|
916
|
-
.input(
|
|
917
|
-
.output(
|
|
916
|
+
.input(GitRebaseInputSchema)
|
|
917
|
+
.output(GitRebaseOutputSchema)
|
|
918
918
|
.meta({
|
|
919
919
|
description: "Rebase the current branch on another branch (not interactive). Conflicts give conflict: true",
|
|
920
920
|
args: ["upstream"],
|
|
@@ -928,8 +928,8 @@ const gitRebaseProcedure = createProcedure()
|
|
|
928
928
|
|
|
929
929
|
const gitRebaseContinueProcedure = createProcedure()
|
|
930
930
|
.path(["git", "rebase", "continue"])
|
|
931
|
-
.input(
|
|
932
|
-
.output(
|
|
931
|
+
.input(GitRebaseContinueInputSchema)
|
|
932
|
+
.output(GitRebaseContinueOutputSchema)
|
|
933
933
|
.meta({
|
|
934
934
|
description: "Continue a rebase after the conflicts are resolved and staged",
|
|
935
935
|
args: [],
|
|
@@ -942,8 +942,8 @@ const gitRebaseContinueProcedure = createProcedure()
|
|
|
942
942
|
|
|
943
943
|
const gitRebaseAbortProcedure = createProcedure()
|
|
944
944
|
.path(["git", "rebase", "abort"])
|
|
945
|
-
.input(
|
|
946
|
-
.output(
|
|
945
|
+
.input(GitRebaseAbortInputSchema)
|
|
946
|
+
.output(GitRebaseAbortOutputSchema)
|
|
947
947
|
.meta({
|
|
948
948
|
description: "Stop a rebase, and go back to the branch as it was before the rebase",
|
|
949
949
|
args: [],
|
|
@@ -957,8 +957,8 @@ const gitRebaseAbortProcedure = createProcedure()
|
|
|
957
957
|
|
|
958
958
|
const gitWorktreeListProcedure = createProcedure()
|
|
959
959
|
.path(["git", "worktree", "list"])
|
|
960
|
-
.input(
|
|
961
|
-
.output(
|
|
960
|
+
.input(GitWorktreeListInputSchema)
|
|
961
|
+
.output(GitWorktreeListOutputSchema)
|
|
962
962
|
.meta({
|
|
963
963
|
description: "List the working trees of the repository",
|
|
964
964
|
args: [],
|
|
@@ -971,8 +971,8 @@ const gitWorktreeListProcedure = createProcedure()
|
|
|
971
971
|
|
|
972
972
|
const gitWorktreeAddProcedure = createProcedure()
|
|
973
973
|
.path(["git", "worktree", "add"])
|
|
974
|
-
.input(
|
|
975
|
-
.output(
|
|
974
|
+
.input(GitWorktreeAddInputSchema)
|
|
975
|
+
.output(GitWorktreeAddOutputSchema)
|
|
976
976
|
.meta({
|
|
977
977
|
description: "Add a working tree in a new folder",
|
|
978
978
|
args: ["path", "ref"],
|
|
@@ -986,8 +986,8 @@ const gitWorktreeAddProcedure = createProcedure()
|
|
|
986
986
|
|
|
987
987
|
const gitWorktreeRemoveProcedure = createProcedure()
|
|
988
988
|
.path(["git", "worktree", "remove"])
|
|
989
|
-
.input(
|
|
990
|
-
.output(
|
|
989
|
+
.input(GitWorktreeRemoveInputSchema)
|
|
990
|
+
.output(GitWorktreeRemoveOutputSchema)
|
|
991
991
|
.meta({
|
|
992
992
|
description: "Remove a working tree and its folder",
|
|
993
993
|
args: ["path"],
|
|
@@ -1001,8 +1001,8 @@ const gitWorktreeRemoveProcedure = createProcedure()
|
|
|
1001
1001
|
|
|
1002
1002
|
const gitBranchListProcedure = createProcedure()
|
|
1003
1003
|
.path(["git", "branch", "list"])
|
|
1004
|
-
.input(
|
|
1005
|
-
.output(
|
|
1004
|
+
.input(GitBranchListInputSchema)
|
|
1005
|
+
.output(GitBranchListOutputSchema)
|
|
1006
1006
|
.meta({
|
|
1007
1007
|
description: "List the branches, and give the current branch",
|
|
1008
1008
|
args: [],
|
|
@@ -1015,8 +1015,8 @@ const gitBranchListProcedure = createProcedure()
|
|
|
1015
1015
|
|
|
1016
1016
|
const gitBranchAddProcedure = createProcedure()
|
|
1017
1017
|
.path(["git", "branch", "add"])
|
|
1018
|
-
.input(
|
|
1019
|
-
.output(
|
|
1018
|
+
.input(GitBranchAddInputSchema)
|
|
1019
|
+
.output(GitBranchAddOutputSchema)
|
|
1020
1020
|
.meta({
|
|
1021
1021
|
description: "Make a branch. An existing branch is an error",
|
|
1022
1022
|
args: ["name", "startPoint"],
|
|
@@ -1029,8 +1029,8 @@ const gitBranchAddProcedure = createProcedure()
|
|
|
1029
1029
|
|
|
1030
1030
|
const gitBranchDeleteProcedure = createProcedure()
|
|
1031
1031
|
.path(["git", "branch", "delete"])
|
|
1032
|
-
.input(
|
|
1033
|
-
.output(
|
|
1032
|
+
.input(GitBranchDeleteInputSchema)
|
|
1033
|
+
.output(GitBranchDeleteOutputSchema)
|
|
1034
1034
|
.meta({
|
|
1035
1035
|
description: "Delete a branch. With force, also a branch that is not merged",
|
|
1036
1036
|
args: ["name"],
|