I don’t know if Git has the concept of a revision.
I’d like to diff the current working copy with an older version of it (not necessarily the last commit).
It would be great if it could be done inside Emacs.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve no idea about doing this inside Emacs, but:
will do what you want for the whole repository. You can then add to that:
pathcan be an absolute path to a file, or a path to a directory, so you can diff subtrees.If you’re looking to diff the working copy – just specify revision 1:
The revision codes can be special names, for example,
HEAD^..HEADmeans last to current, or their SHA-1 values from the logs.