Creating empty commits with --intent-to-add

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]