Skip to content

Commit

Permalink
feat(completions): update git
Browse files Browse the repository at this point in the history
  • Loading branch information
abgox committed Dec 18, 2024
1 parent e035cb7 commit d4f2dca
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 1 deletion.
2 changes: 1 addition & 1 deletion completions/git/guid.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d728e74d-6a4b-4928-a63f-82e56281a087
ef9366fc-4a1d-4d12-90e1-5c0d4c596a19
66 changes: 66 additions & 0 deletions completions/git/language/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,27 @@
"Modify the message of the last commit(Create a new commit, replacing the last one)"
]
},
{
"name": "—allow-empty",
"tip": [
"Usually recording a commit that has the exact same tree as its sole parent commit is a mistake, and the command prevents you from making such a commit.\n",
"This option bypasses the safety, and is primarily for use by foreign SCM interface scripts."
]
},
{
"name": "--fixup",
"tip": [
"Create a new commit which \"fixes up\" <commit> when applied with `git rebase --autosquash.`"
],
"next": []
},
{
"name": "--squash",
"tip": [
"Construct a commit message for use with `rebase --autosquash`."
],
"next": []
},
{
"name": "-p",
"alias": [
Expand Down Expand Up @@ -252,6 +273,51 @@
"U: -C <commit>\n",
"Take an existing commit object and reuse the log message and author information when creating a commit (including timestamps)"
]
},
{
"name": "--reset-author",
"tip": [
"When used with -C/-c/--amend options, or when committing after a conflicting cherry-pick, declare that the authorship of the resulting commit now belongs to the committer.\n",
"This also renews the author timestamp."
]
},
{
"name": "--short",
"tip": [
"When doing a dry-run, give the output in the short-format.\n",
"See https://git-scm.com/docs/git-status for details.\n",
"Implies `--dry-run`."
]
},
{
"name": "--branch",
"tip": [
"Show the branch and tracking info even in short-format."
]
},
{
"name": "--porcelain",
"tip": [
"When doing a dry-run, give the output in a porcelain-ready format.\n",
"See https://git-scm.com/docs/git-status for details.\n",
"Implies `--dry-run`."
]
},
{
"name": "--long",
"tip": [
"When doing a dry-run, give the output in the long-format.\n",
"Implies `--dry-run`."
]
},
{
"name": "-s",
"alias": [
"--signoff"
]
},
{
"name": "--no-signoff"
}
]
},
Expand Down
67 changes: 67 additions & 0 deletions completions/git/language/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,28 @@
"修改最后一次提交的信息(创建一个新的提交, 替换最后一个提交)"
]
},
{
"name": "—allow-empty",
"tip": [
"用于没有提交信息的 commit"
]
},
{
"name": "--fixup",
"tip": [
"当前添加的 commit 是以前某一个 commit 的修正。\n",
"以后执行互动式的git rebase的时候,这两个 commit 将会合并成一个。"
],
"next": []
},
{
"name": "--squash",
"tip": [
"当前添加的 commit 应该与以前某一个 commit 合并成一个。\n",
"以后执行互动式的git rebase的时候,这两个 commit 将会合并成一个。"
],
"next": []
},
{
"name": "-p",
"alias": [
Expand Down Expand Up @@ -252,6 +274,51 @@
"U: -C <commit>\n",
"获取一个已存在的提交对象, 并在创建提交时重用日志信息和作者信息(包括时间戳)"
]
},
{
"name": "--reset-author",
"tip": [
"When used with -C/-c/--amend options, or when committing after a conflicting cherry-pick, declare that the authorship of the resulting commit now belongs to the committer.\n",
"This also renews the author timestamp."
]
},
{
"name": "--short",
"tip": [
"When doing a dry-run, give the output in the short-format.\n",
"See https://git-scm.com/docs/git-status for details.\n",
"Implies `--dry-run`."
]
},
{
"name": "--branch",
"tip": [
"Show the branch and tracking info even in short-format."
]
},
{
"name": "--porcelain",
"tip": [
"When doing a dry-run, give the output in a porcelain-ready format.\n",
"See https://git-scm.com/docs/git-status for details.\n",
"Implies `--dry-run`."
]
},
{
"name": "--long",
"tip": [
"When doing a dry-run, give the output in the long-format.\n",
"Implies `--dry-run`."
]
},
{
"name": "-s",
"alias": [
"--signoff"
]
},
{
"name": "--no-signoff"
}
]
},
Expand Down

0 comments on commit d4f2dca

Please sign in to comment.