unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19099: Diff options with vc-git
@ 2014-11-18 19:09 Glenn Morris
  2014-11-18 19:17 ` Eli Zaretskii
  2014-11-19  3:03 ` bug#19099: [PATCH] vc-git: Support `diff-switches' Rüdiger Sonderfeld
  0 siblings, 2 replies; 11+ messages in thread
From: Glenn Morris @ 2014-11-18 19:09 UTC (permalink / raw)
  To: 19099

Package: emacs
Version: 24.4

I would like to use context diffs with vc-diff. Or pretend I said "any
GNU diff option that git diff does not support".

If I

(setq diff-switches '("-c" -w"))

then it works fine with vc-bzr, which correctly converts these into
"--diff-options" for bzr diff. Same for vc-svn, which automatically adds
--diff-cmd.

With vc-git this does nothing. Setting vc-git-diff-switches to nil
doesn't do the right thing: it passes -c to "git diff", which
interprets it as "--combined", which is not what I wanted.

IIUC there's basically no way to get this with git diff, I have to use
  
   difftool -x "diff -c"

(which seems to parse its -x argument on whitespace, yuck).

So, TLDR:

I'd like an option to call difftool instead of diff in vc-git-diff, please.
If it was consistent with eg vc-svn, this would happen by default when
vc-git-diff-switches was nil.





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

end of thread, other threads:[~2014-11-19 19:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-18 19:09 bug#19099: Diff options with vc-git Glenn Morris
2014-11-18 19:17 ` Eli Zaretskii
2014-11-18 19:27   ` Glenn Morris
2014-11-18 19:57     ` Eli Zaretskii
2014-11-18 20:01       ` Eli Zaretskii
2014-11-19  3:03 ` bug#19099: [PATCH] vc-git: Support `diff-switches' Rüdiger Sonderfeld
2014-11-19  4:36   ` Glenn Morris
2014-11-19 11:13     ` Rüdiger Sonderfeld
2014-11-19 18:30       ` Glenn Morris
2014-11-19 19:05         ` Eli Zaretskii
2014-11-19 19:44           ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).