That is possible:

    emacsclient -e '(magit-diff "rev1:file1" nil (list "rev2:file2"))'

But there are some limitations:

- The heading won't make much sense. In the above example it would be "Changes 
in rev1:file1".
- The second argument to magit-diff should always be nil.
- You cannot specify files without a "rev:" prefix. That's because "--" gets 
appended to the arguments you provide. You could remove "--" from 
magit-refresh-diff-buffer to remove that restriction.
- If you make a mistake (e.g. typo in file name) you just get a buffer with 
only a header but no indication of what went wrong.  You could insert something 
like (message " %S" (list ,@args)) into magit-cmd-insert-section for debugging 
purposes.

-- 
You received this message because you are subscribed to the Google Groups 
"magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to