Re: "git diff --stat" doesn't show added empty file
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 12, 2009, 12:19 UTC
- Message-ID
- <alpine.DEB.1.00.0901121319210.3586@pacific.mpi-cbg.de>
- In-Reply-To
- <46dff0320901111936h6343e51fo94750d83e95743dc@mail.gmail.com>
Hi,
On Mon, 12 Jan 2009, Ping Yin wrote:
Show 12 quoted lines
> $ git --version > git version 1.6.1.9.g97c34 > $ mkdir test && cd test && git init && git commit --allow-empty -m > "Initial commit" > $ touch .gitignore && git add .gitignore && git commit -m "Add empty .gitignore" > $ git diff --stat HEAD^.. > 0 files changed, 0 insertions(+), 0 deletions(-) > > May be the following is better? > > .gitignore | 0 + > 1 files changed, 0 insertions(+), 0 deletions(-)
Have fun coding that.
Ciao, Dscho