Creating empty commits with --intent-to-add
- From
Thomas Braun <thomas.braun@virtuell-zuhause.de>
- Date
- Jun 4, 2016, 17:54 UTC
- Message-ID
- <fdf86f73-0885-7191-2932-f10feba0bdfc@virtuell-zuhause.de>
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 and 2.1.4 on linux.
Thomas