Re: [q] git-diff --reverse 7def2be1..7def2be1^
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Jun 20, 2008, 11:30 UTC
- Message-ID
- <vpqiqw42vk6.fsf@bauges.imag.fr>
- In-Reply-To
- <20080620082034.GA24913@elte.hu>
Ingo Molnar <mingo@elte.hu> writes:
Show 6 quoted lines
> 1) the SHA1 is duplicated above, is there a way to avoid it? Initially i > tried the obvious extension: > > git-diff --reverse 7def2be1..^ > > But Git didnt recognize that as a valid commit range.
Git may not know how to do it, but since you can omit the .. here, your shell knows:
git diff whatever{,^}(BTW, git-foo is being obsoleted in favor of "git foo")
-- Matthieu