repo.or.cz
/
git
/
gitster.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Git 2.48
[git/gitster.git]
/
Documentation
/
generate-mergetool-list.sh
blob
6700498b93be5358d992530b8dee39c08f02bd8d
1
#!/bin/sh
2
3
if
test
"
$#
"
-ne
3
4
then
5
echo
>&
2
"USAGE:
$0
<SOURCE_DIR> <MODE> <OUTPUT>"
6
exit
1
7
fi
8
9
SOURCE_DIR
=
"
$1
"
10
TOOL_MODE
=
"
$2
"
11
OUTPUT
=
"
$3
"
12
MERGE_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
"