Skip to content

Commit f9c336f

Browse files
authored
feat(git): Fix stash spec (#2397)
1 parent 0e80558 commit f9c336f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/git.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6857,7 +6857,6 @@ const completionSpec: Fig.Spec = {
68576857
name: "push", // TODO: support for no subcommand is missing
68586858
description:
68596859
"Save your local modifications to a new stash entry and roll them back to HEAD",
6860-
insertValue: "push {cursor}",
68616860
options: [
68626861
{
68636862
name: ["-p", "--patch"],
@@ -6902,7 +6901,6 @@ const completionSpec: Fig.Spec = {
69026901
{
69036902
name: "show",
69046903
description: "Show the changes recorded in the stash entry as a diff",
6905-
insertValue: "show {cursor}",
69066904
args: {
69076905
name: "stash",
69086906
isOptional: true,
@@ -6913,7 +6911,6 @@ const completionSpec: Fig.Spec = {
69136911
{
69146912
name: "save",
69156913
description: "Temporarily stores all the modified tracked files",
6916-
insertValue: "save {cursor}",
69176914
options: [
69186915
{
69196916
name: ["-p", "--patch"],
@@ -6968,12 +6965,10 @@ const completionSpec: Fig.Spec = {
69686965
{
69696966
name: "list",
69706967
description: "Lists all stashed changesets",
6971-
insertValue: "list {cursor}",
69726968
},
69736969
{
69746970
name: "drop",
69756971
description: "Discards the most recently stashed changeset",
6976-
insertValue: "drop {cursor}",
69776972
options: [
69786973
{
69796974
name: ["-q", "--quiet"],
@@ -7033,16 +7028,16 @@ const completionSpec: Fig.Spec = {
70337028
},
70347029
{
70357030
name: "create",
7036-
description: "Creates a stash with the message <msg>",
7037-
insertValue: "create {cursor}",
7031+
description: "Creates a stash entry",
70387032
args: {
70397033
name: "message",
7034+
isOptional: true,
70407035
},
70417036
},
70427037
{
70437038
name: "store",
70447039
description:
7045-
"Store a given stash in the stash ref., updating the staft reflog",
7040+
"Store a given stash in the stash ref, updating the stash reflog",
70467041
options: [
70477042
{
70487043
name: ["-m", "--message"],

0 commit comments

Comments
 (0)