diff options
author | Teddy Wing | 2019-11-08 00:29:46 +0100 |
---|---|---|
committer | Teddy Wing | 2019-11-08 00:29:46 +0100 |
commit | d691030b0a8b354be0ea158990b3994284502c33 (patch) | |
tree | 15c162ea73636a213063d7b2c49eb4c6de2f9c8b /code-review-difftool | |
parent | 0c7d7544107ca416654cc0dffc7f627da5f07797 (diff) | |
download | code-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-x | code-review-difftool | 5 |
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) |