Re: bug with git-diff --quiet

2014-01-24 Thread Duy Nguyen
On Thu, Jan 23, 2014 at 11:45:25AM +0900, IWAMOTO Toshihiro wrote: > I found "git-diff --quiet" returns a zero exit status even if there's > a change. The following sequence reproduces the bug: > > $ mkdir foo > $ cd foo > $ git init > $ echo a > a.txt > $ echo b >b.txt > $ git add ?.

bug with git-diff --quiet

2014-01-22 Thread IWAMOTO Toshihiro
I found "git-diff --quiet" returns a zero exit status even if there's a change. The following sequence reproduces the bug: $ mkdir foo $ cd foo $ git init $ echo a > a.txt $ echo b >b.txt $ git add ?.txt $ git commit $ echo b >> b.txt $ touch a.txt $ git diff --quiet; echo $?