aboutsummaryrefslogtreecommitdiffstats
path: root/code-review-difftool
diff options
context:
space:
mode:
authorTeddy Wing2019-11-08 00:29:46 +0100
committerTeddy Wing2019-11-08 00:29:46 +0100
commitd691030b0a8b354be0ea158990b3994284502c33 (patch)
tree15c162ea73636a213063d7b2c49eb4c6de2f9c8b /code-review-difftool
parent0c7d7544107ca416654cc0dffc7f627da5f07797 (diff)
downloadcode-review-d691030b0a8b354be0ea158990b3994284502c33.tar.bz2
code-review-difftool: Turn off swap files
When the files being opened with `difftool` are already open in a Vim instance, a 'swap file already exists' confirmation warning is displayed for each file. Bypass the warning by not saving swap files (using the -n command line option).
Diffstat (limited to 'code-review-difftool')
-rwxr-xr-xcode-review-difftool5
1 files changed, 4 insertions, 1 deletions
diff --git a/code-review-difftool b/code-review-difftool
index 9cbf631..87a332a 100755
--- a/code-review-difftool
+++ b/code-review-difftool
@@ -27,4 +27,7 @@ review_base="$(get_merge_base)"
shopt -s extglob
review_base_without_dots="${review_base%%?(..|...)}"
-vim -c "tabdo Gdiff $review_base_without_dots" -p $(code-review changed-files)
+vim \
+ -n \
+ -c "tabdo Gdiff $review_base_without_dots" \
+ -p $(code-review changed-files)