Merge branch 'ah/mergetols-vscode'

"git mergetool" learned to use VSCode as a merge backend.

* ah/mergetols-vscode:
  mergetools: vscode: new tool
maint
Junio C Hamano 2024-09-10 13:16:42 -07:00
commit d1ea0f70cb
1 changed files with 19 additions and 0 deletions

19
mergetools/vscode Normal file
View File

@ -0,0 +1,19 @@
diff_cmd () {
"$merge_tool_path" --wait --diff "$LOCAL" "$REMOTE"
}

diff_cmd_help () {
echo "Use Visual Studio Code (requires a graphical session)"
}

merge_cmd () {
"$merge_tool_path" --wait --merge "$REMOTE" "$LOCAL" "$BASE" "$MERGED"
}

merge_cmd_help () {
echo "Use Visual Studio Code (requires a graphical session)"
}

translate_merge_tool_path () {
echo code
}