From d4f2dca4976bd3e22fa5aeb2a57aeb0949f97311 Mon Sep 17 00:00:00 2001 From: abgox Date: Thu, 19 Dec 2024 00:05:26 +0800 Subject: [PATCH] feat(completions): update git --- completions/git/guid.txt | 2 +- completions/git/language/en-US.json | 66 ++++++++++++++++++++++++++++ completions/git/language/zh-CN.json | 67 +++++++++++++++++++++++++++++ 3 files changed, 134 insertions(+), 1 deletion(-) diff --git a/completions/git/guid.txt b/completions/git/guid.txt index 0f79921..95a5eeb 100644 --- a/completions/git/guid.txt +++ b/completions/git/guid.txt @@ -1 +1 @@ -d728e74d-6a4b-4928-a63f-82e56281a087 +ef9366fc-4a1d-4d12-90e1-5c0d4c596a19 diff --git a/completions/git/language/en-US.json b/completions/git/language/en-US.json index 7f21e23..0a496a7 100644 --- a/completions/git/language/en-US.json +++ b/completions/git/language/en-US.json @@ -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\" when applied with `git rebase --autosquash.`" + ], + "next": [] + }, + { + "name": "--squash", + "tip": [ + "Construct a commit message for use with `rebase --autosquash`." + ], + "next": [] + }, { "name": "-p", "alias": [ @@ -252,6 +273,51 @@ "U: -C \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" } ] }, diff --git a/completions/git/language/zh-CN.json b/completions/git/language/zh-CN.json index dfc4616..ea8fa49 100644 --- a/completions/git/language/zh-CN.json +++ b/completions/git/language/zh-CN.json @@ -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": [ @@ -252,6 +274,51 @@ "U: -C \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" } ] },