Skip to content

Commit 878db70

Browse files
Add completion spec: git show (#230)
Co-authored-by: lucieleblanc <14223323+lucieleblanc@users.noreply.github.com> Co-authored-by: Oz <oz-agent@warp.dev>
1 parent 76ee0fb commit 878db70

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

0 commit comments

Comments
 (0)