简体中文 ▾
Localized versions of git-mergetool--lib manual
Topics ▾
Email
Latest version
▾
git-mergetool--lib last updated in 2.43.0
Changes in the git-mergetool--lib manual
Setup and Config
Getting and Creating Projects
Basic Snapshotting
Branching and Merging
Sharing and Updating Projects
Inspection and Comparison
Patching
Debugging
External Systems
Server Admin
Guides
- gitattributes
- Command-line interface conventions
- Everyday Git
- Frequently Asked Questions (FAQ)
- Glossary
- Hooks
- gitignore
- gitmodules
- Revisions
- Submodules
- Tutorial
- Workflows
- All guides...
Administration
Plumbing Commands
- 2.43.1 → 2.50.0 no changes
-
2.43.0
2023-11-20
- 2.31.1 → 2.42.4 no changes
-
2.31.0
2021-03-15
- 2.22.1 → 2.30.9 no changes
-
2.22.0
2019-06-07
- 2.1.4 → 2.21.4 no changes
-
2.0.5
2014-12-17
描述
这不是一个终端用户想要运行的命令。 永远不会。 这个文档是为研究 Porcelain-ish 脚本和/或正在编写新脚本的人准备的。
git-mergetool--lib 脚本被设计成可以被其他 shell 脚本引用(使用 .
),以设置与 Git 合并工具一起工作的功能。
在链接到 git-mergetool--lib 之前,你的脚本必须设置 TOOL_MODE
来定义下列函数的操作模式。 diff 和 'merge’是有效值。
功能
- get_merge_tool
-
返回一个合并工具。如果我们返回一个被猜中的合并工具,返回代码为 1,否则为0。$GIT_MERGETOOL_GUI 可以被设置为 true 以搜索合适的 guitool。
- get_merge_tool_cmd
-
返回一个合并工具的自定义命令。
- get_merge_tool_path
-
返回一个合并工具的自定义路径。
- initialize_merge_tool
-
将特定于合并工具的函数纳入作用域,以便使用或覆盖这些函数。
- run_merge_tool
-
根据工具名称和表示是否存在合并基础的真/假标志,启动合并工具。 合并工具必须定义 $MERGED 、$LOCAL 、$REMOTE 和 $BASE。
GIT
属于 git[1] 文档