[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master 4e23cd0 4/5: * mail/rmail.el (rmail-show-messag

From: Harald Hanche-Olsen
Subject: Re: [Emacs-diffs] master 4e23cd0 4/5: * mail/rmail.el (rmail-show-message-1): When displaying a mime message,
Date: Wed, 08 Apr 2015 14:26:54 +0200
User-agent: Postbox 3.0.11 (Macintosh/20140602)

Sebastien Vauban wrote:
I had the impression that "git show" was an older command, now
replaceable by "git log" with some options.  Is my impression right?

As the two commands take many of the same options, you are probably right. “git log -1 -p” looks like a good start.

Isn't there a difference between "git diff" and "git diff HEAD" where
the first would show the changes between the working tree and the index,
while the latter would show them between the working tree and the latest
commit (HEAD, as you said)?

Yes. There is also “git diff --cached” (--staged is an alias of --cached here) which shows the diff between the commit (HEAD by default) and the index / staging area.

(One annoying feature of git is the great variation in terminology. It seems they have moved to new (and better?) terminology over time, but the old terminology remains, so that you now have to learn two or three synonymous terms for many concepts.)

– Harald

reply via email to

[Prev in Thread] Current Thread [Next in Thread]