Skip to content

Commit b10eca6

Browse files
Add options to git show completion spec
Add comprehensive options to the git show subcommand in git.json, complementing the existing branch/tag/commit generators. Options include format, diff output, display, notes, and tab expansion settings. Closes APP-3486 Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 1627080 commit b10eca6

1 file changed

Lines changed: 175 additions & 0 deletions

File tree

command-signatures/json/git.json

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6213,6 +6213,181 @@
62136213
{
62146214
"name": "show",
62156215
"description": "Show various types of objects",
6216+
"options": [
6217+
{
6218+
"name": "--format",
6219+
"description": "Pretty-print the contents of the commit logs in a given format",
6220+
"requiresSeparator": true,
6221+
"args": {
6222+
"name": "format",
6223+
"suggestions": [
6224+
{
6225+
"name": "oneline",
6226+
"description": "<hash> <title-line>"
6227+
},
6228+
{
6229+
"name": "short",
6230+
"description": "Short format"
6231+
},
6232+
{
6233+
"name": "medium",
6234+
"description": "Medium format"
6235+
},
6236+
{
6237+
"name": "full",
6238+
"description": "Full format"
6239+
},
6240+
{
6241+
"name": "fuller",
6242+
"description": "Fuller format"
6243+
},
6244+
{
6245+
"name": "reference",
6246+
"description": "Reference format"
6247+
},
6248+
{
6249+
"name": "email",
6250+
"description": "Email format"
6251+
},
6252+
{
6253+
"name": "raw",
6254+
"description": "Show the entire commit exactly as stored"
6255+
}
6256+
]
6257+
}
6258+
},
6259+
{
6260+
"name": "--abbrev-commit",
6261+
"description": "Show only a partial hexadecimal commit object name"
6262+
},
6263+
{
6264+
"name": "--no-abbrev-commit",
6265+
"description": "Show the full 40-byte hexadecimal commit object name"
6266+
},
6267+
{
6268+
"name": "--oneline",
6269+
"description": "Shorthand for \"--pretty=oneline --abbrev-commit\""
6270+
},
6271+
{
6272+
"name": "--encoding",
6273+
"description": "Re-code the commit log message in the encoding",
6274+
"requiresSeparator": true,
6275+
"args": {
6276+
"name": "encoding"
6277+
}
6278+
},
6279+
{
6280+
"name": "--expand-tabs",
6281+
"description": "Perform a tab expansion in the log message"
6282+
},
6283+
{
6284+
"name": "--no-expand-tabs",
6285+
"description": "Do not perform a tab expansion in the log message"
6286+
},
6287+
{
6288+
"name": "--notes",
6289+
"description": "Show the notes that annotate the commit",
6290+
"isRepeatable": true,
6291+
"args": {
6292+
"name": "ref",
6293+
"isOptional": true
6294+
}
6295+
},
6296+
{
6297+
"name": "--no-notes",
6298+
"description": "Do not show notes"
6299+
},
6300+
{
6301+
"name": [
6302+
"-s",
6303+
"--no-patch"
6304+
],
6305+
"description": "Suppress diff output"
6306+
},
6307+
{
6308+
"name": "--show-signature",
6309+
"description": "Check the validity of a signed commit object"
6310+
},
6311+
{
6312+
"name": "--stat",
6313+
"description": "Generate a diffstat"
6314+
},
6315+
{
6316+
"name": "--numstat",
6317+
"description": "Show number of added and deleted lines in decimal notation"
6318+
},
6319+
{
6320+
"name": "--shortstat",
6321+
"description": "Output only the last line of the --stat format"
6322+
},
6323+
{
6324+
"name": "--name-only",
6325+
"description": "Show only names of changed files"
6326+
},
6327+
{
6328+
"name": "--name-status",
6329+
"description": "Show names and status of changed files"
6330+
},
6331+
{
6332+
"name": [
6333+
"-p",
6334+
"-u",
6335+
"--patch"
6336+
],
6337+
"description": "Generate patch"
6338+
},
6339+
{
6340+
"name": [
6341+
"-q",
6342+
"--quiet"
6343+
],
6344+
"description": "Suppress diff output"
6345+
},
6346+
{
6347+
"name": "--raw",
6348+
"description": "Show the raw diff format"
6349+
},
6350+
{
6351+
"name": "--color",
6352+
"description": "Show colored diff",
6353+
"args": {
6354+
"name": "when",
6355+
"isOptional": true,
6356+
"suggestions": [
6357+
"always",
6358+
"never",
6359+
"auto"
6360+
]
6361+
}
6362+
},
6363+
{
6364+
"name": "--no-color",
6365+
"description": "Turn off colored diff"
6366+
},
6367+
{
6368+
"name": "--diff-filter",
6369+
"description": "Select only files that are Added (A), Copied (C), Deleted (D), Modified (M), Renamed (R), have their type changed (T), are Unmerged (U), are Unknown (X), or have had their pairing Broken (B)",
6370+
"requiresSeparator": true,
6371+
"args": {
6372+
"name": "filter",
6373+
"suggestions": [
6374+
{ "name": "A", "description": "Added" },
6375+
{ "name": "C", "description": "Copied" },
6376+
{ "name": "D", "description": "Deleted" },
6377+
{ "name": "M", "description": "Modified" },
6378+
{ "name": "R", "description": "Renamed" },
6379+
{ "name": "T", "description": "Type changed" },
6380+
{ "name": "U", "description": "Unmerged" },
6381+
{ "name": "X", "description": "Unknown" },
6382+
{ "name": "B", "description": "Broken" }
6383+
]
6384+
}
6385+
},
6386+
{
6387+
"name": "--",
6388+
"description": "Separates paths from options for disambiguation purposes"
6389+
}
6390+
],
62166391
"args": {
62176392
"name": "object",
62186393
"isVariadic": true,

0 commit comments

Comments
 (0)