Re: Creating empty commits with --intent-to-add

2016-06-05 Thread Thomas Braun
Am 05.06.2016 um 05:15 schrieb Duy Nguyen: > On Sun, Jun 5, 2016 at 12:54 AM, Thomas Braun > wrote: >> Hi, >> >> the following procedure >> >> mkdir test >> cd test >> git init >> echo 1 >file >> git add --intent-to-add file >> git commit -m "blurb" >> >> results in a commit. I would have expected

Re: Creating empty commits with --intent-to-add

2016-06-04 Thread Duy Nguyen
On Sun, Jun 5, 2016 at 12:54 AM, Thomas Braun wrote: > Hi, > > the following procedure > > mkdir test > cd test > git init > echo 1 >file > git add --intent-to-add file > git commit -m "blurb" > > results in a commit. I would have expected that git commit complains, > as I have not pased the --all

Creating empty commits with --intent-to-add

2016-06-04 Thread Thomas Braun
Hi, the following procedure mkdir test cd test git init echo 1 >file git add --intent-to-add file git commit -m "blurb" results in a commit. I would have expected that git commit complains, as I have not pased the --allow-empty option. Is that intended behaviour? Tested with 2.8.3.windows.1 an