Thanks. I was looking exactly for something along these lines. I have noted 
some of the limitations you mentioned and I'm currently giving it a try. Though 
I have also recently been introduced *properly* to magit-status, so that 
workflow may prove sufficient. I was initially trying to avoid the output I get 
when I call `git diff` from eshell.

Thanks again for taking the time to mention this.


On Saturday, December 14, 2013 2:32:27 AM UTC+1, Jonas Bernoulli wrote:
> 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