interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / Documentation / generate-mergetool-list.sh

17 lines · 309 bytes Raw Blame History
1#!/bin/sh
2
3if test "$#" -ne 3
4then
5 echo >&2 "USAGE: $0 <SOURCE_DIR> <MODE> <OUTPUT>"
6 exit 1
7fi
8
9SOURCE_DIR="$1"
10TOOL_MODE="$2"
11OUTPUT="$3"
12MERGE_TOOLS_DIR="$SOURCE_DIR/mergetools"
13
14(
15 . "$SOURCE_DIR"/git-mergetool--lib.sh &&
16 show_tool_names can_$TOOL_MODE
17) | sed -e "s/\([a-z0-9]*\)/\`\1\`;;/" >"$OUTPUT"