We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c7e2d2 commit 7bfb7c3Copy full SHA for 7bfb7c3
git-mergetool.sh
@@ -10,11 +10,11 @@
10
11
USAGE='[--tool=tool] [--tool-help] [-y|--no-prompt|--prompt] [file to merge] ...'
12
SUBDIRECTORY_OK=Yes
13
+NONGIT_OK=Yes
14
OPTIONS_SPEC=
15
TOOL_MODE=merge
16
. git-sh-setup
17
. git-mergetool--lib
-require_work_tree
18
19
# Returns true if the mode reflects a symlink
20
is_symlink () {
@@ -377,6 +377,9 @@ prompt_after_failed_merge () {
377
done
378
}
379
380
+git_dir_init
381
+require_work_tree
382
+
383
if test -z "$merge_tool"
384
then
385
merge_tool=$(get_merge_tool "$merge_tool") || exit
0 commit comments