Re: Salvaging borked project history
- From
- Mason <slash.tmp@free.fr>
- Date
- Feb 26, 2015, 23:47 UTC
- Message-ID
- <54EFB0AE.6000600@free.fr>
- In-Reply-To
- <xmqqioeol5v4.fsf@gitster.dls.corp.google.com>
Junio C Hamano wrote:
Show 6 quoted lines
> Mason wrote: > >> I was planning to write 'git diff -q commit^ commit' >> to test for empty commits. > > s/-q/--quiet/ and all is well, no?
Doh! I've no idea how I missed these...
--exit-code Make the program exit with codes similar to diff(1). That is, it exits with 1 if there were differences and 0 means no differences.
--quiet Disable all output of the program. Implies --exit-code.
Thanks for walking me through it.
Regards.