-
Notifications
You must be signed in to change notification settings - Fork 9
Spec multi-arg audit: git and the editor diff options #342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,17 +15,7 @@ | |
| "-d", | ||
| "--diff" | ||
| ], | ||
| "description": "Compare two files with each other", | ||
| "args": [ | ||
| { | ||
| "name": "file", | ||
| "template": "filepaths" | ||
| }, | ||
| { | ||
| "name": "file", | ||
| "template": "filepaths" | ||
| } | ||
| ] | ||
| "description": "Compare two files with each other" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. VS Code's parser treats The |
||
| }, | ||
| { | ||
| "name": [ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6788,27 +6788,11 @@ | |
| "-m", | ||
| "--move" | ||
| ], | ||
| "description": "Move/rename a branch and its reflog", | ||
| "args": [ | ||
| { | ||
| "generatorName": "local_branches" | ||
| }, | ||
| { | ||
| "generatorName": "local_branches" | ||
| } | ||
| ] | ||
| "description": "Move/rename a branch and its reflog" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both are listed by |
||
| }, | ||
| { | ||
| "name": "-M", | ||
| "description": "Move/rename a branch, even if target exists", | ||
| "args": [ | ||
| { | ||
| "generatorName": "local_branches" | ||
| }, | ||
| { | ||
| "generatorName": "local_branches" | ||
| } | ||
| ] | ||
| "description": "Move/rename a branch, even if target exists" | ||
| }, | ||
| { | ||
| "name": [ | ||
|
|
@@ -6957,35 +6941,15 @@ | |
| "exclusiveOn": [ | ||
| "--no-track" | ||
| ], | ||
| "description": "When creating a new branch, set up 'upstream' configuration", | ||
| "args": [ | ||
| { | ||
| "name": "branch", | ||
| "generatorName": "local_branches" | ||
| }, | ||
| { | ||
| "name": "start point", | ||
| "isOptional": true, | ||
| "generatorName": "commits" | ||
| } | ||
| ] | ||
| "description": "When creating a new branch, set up 'upstream' configuration" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It stays a bare flag rather than becoming a one-value option because git accepts the value only when attached: |
||
| }, | ||
| { | ||
| "name": "--no-track", | ||
| "exclusiveOn": [ | ||
| "--track", | ||
| "-t" | ||
| ], | ||
| "description": "Do not set up 'upstream' configuration, even if the branch.autoSetupMerge configuration variable is true", | ||
| "args": [ | ||
| { | ||
| "generatorName": "local_branches" | ||
| }, | ||
| { | ||
| "isOptional": true, | ||
| "generatorName": "local_branches" | ||
| } | ||
| ] | ||
| "description": "Do not set up 'upstream' configuration, even if the branch.autoSetupMerge configuration variable is true" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The negated half of |
||
| }, | ||
| { | ||
| "name": [ | ||
|
|
@@ -7049,7 +7013,14 @@ | |
| "--color" | ||
| ] | ||
| } | ||
| ] | ||
| ], | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the one addition in the PR, and it exists because
|
||
| "args": { | ||
| "name": "branch-name", | ||
| "description": "Branch operand(s): <branch-name> [<start-point>] when creating, [<old-branch>] <new-branch> with -m/-M/-c/-C, <branch-name>... with -d/-D, or [<pattern>...] with --list", | ||
| "isOptional": true, | ||
| "isVariadic": true, | ||
| "generatorName": "local_branches" | ||
| } | ||
| }, | ||
| { | ||
| "name": "checkout", | ||
|
|
@@ -8336,33 +8307,19 @@ | |
| "--create" | ||
| ], | ||
| "description": "Create a new branch named <new-branch> starting at <start-point> before switching to the branch", | ||
| "args": [ | ||
| { | ||
| "name": "new branch" | ||
| }, | ||
| { | ||
| "name": "start point", | ||
| "isOptional": true, | ||
| "generatorName": "commits" | ||
| } | ||
| ] | ||
| "args": { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
One knock-on worth knowing: that operand position now resolves to switch's first positional ( |
||
| "name": "new branch" | ||
| } | ||
| }, | ||
| { | ||
| "name": [ | ||
| "-C", | ||
| "--force-create" | ||
| ], | ||
| "description": "Similar to --create except that if <new-branch> already exists it will be reset to <start-point>", | ||
| "args": [ | ||
| { | ||
| "name": "new branch" | ||
| }, | ||
| { | ||
| "name": "start point", | ||
| "isOptional": true, | ||
| "generatorName": "commits" | ||
| } | ||
| ] | ||
| "args": { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| "name": "new branch" | ||
| } | ||
| }, | ||
| { | ||
| "name": [ | ||
|
|
@@ -8435,35 +8392,15 @@ | |
| "exclusiveOn": [ | ||
| "--no-track" | ||
| ], | ||
| "description": "When creating a new branch, set up 'upstream' configuration", | ||
| "args": [ | ||
| { | ||
| "name": "branch", | ||
| "generatorName": "local_branches" | ||
| }, | ||
| { | ||
| "name": "start point", | ||
| "isOptional": true, | ||
| "generatorName": "commits" | ||
| } | ||
| ] | ||
| "description": "When creating a new branch, set up 'upstream' configuration" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| }, | ||
| { | ||
| "name": "--no-track", | ||
| "exclusiveOn": [ | ||
| "--track", | ||
| "-t" | ||
| ], | ||
| "description": "Do not set up 'upstream' configuration, even if the branch.autoSetupMerge configuration variable is true", | ||
| "args": [ | ||
| { | ||
| "generatorName": "local_branches" | ||
| }, | ||
| { | ||
| "isOptional": true, | ||
| "generatorName": "local_branches" | ||
| } | ||
| ] | ||
| "description": "Do not set up 'upstream' configuration, even if the branch.autoSetupMerge configuration variable is true" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. git-switch(1) documents |
||
| }, | ||
| { | ||
| "name": "--orphan", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same option, same source:
code-insidersis the Insiders build of the same CLI and sharesargv.ts. Reasoning is on thecode.jsonhunk.