看起来从 SmartGit 22.1 开始,格式补丁功能又消失了。值得庆幸的是,他们的网站上有它作为示例工具:https ://docs.syntevo.com/SmartGit/22.1/Example-Tools.html#format-patch
将此内容保存到文件中
format-patch.yml,并使用首选项“工具”页面上的“导入”按钮从 SmartGit 版本 < 22.1 恢复格式补丁功能。Run Code Online (Sandbox Code Playgroud)tools: - name: Format Patch fileStarter: {command: '${git}', parameters: 'format-patch -o "${dirSelect}" -1 ${commit}'} useForOpen: false waitUntilFinished: true filePattern: '*' - name: Format Patch fileStarter: {command: '${git}', parameters: 'format-patch -o "${dirSelect}" ${commit}..${commit2}'} useForOpen: false waitUntilFinished: true filePattern: '*'