git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Swap file trouble with gvimdiff
@ 2011-02-24 19:34 Marco
  2011-02-25  9:36 ` [PATCH] mergetool-lib: call vim in readonly mode for diffs Michael J Gruber
  0 siblings, 1 reply; 4+ messages in thread
From: Marco @ 2011-02-24 19:34 UTC (permalink / raw)
  To: git

Hi,

I use gvimdiff as difftool. The relevant .gitconfig entries look as follows:

[diff]
	tool = gvimdiff
[difftool]
	prompt = false

But when one diffs a file alredy opened in another window it clashes because
gvimdiff recognises the swap file and throws a message.

It would make sense to pass the option »-n« to gvimdiff to avoid creating a
swap file, since it is not needed here.

I haven't found the place where the command line and arguments for the
supported difftools are placed, so I created a new entry in the .gitconfig

[diff]
	tool = bettergvimdiff
[difftool "bettergvimdiff"]
	cmd = "gvimdiff -f -n \"$LOCAL\" \"$REMOTE\""

I want to know if this is a »correct« solution and — if not — how you solve
the problem.


Marco

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-27 22:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-24 19:34 Swap file trouble with gvimdiff Marco
2011-02-25  9:36 ` [PATCH] mergetool-lib: call vim in readonly mode for diffs Michael J Gruber
2011-02-25 20:01   ` Junio C Hamano
2011-02-27 22:33     ` David Aguilar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).