From: Angelo Borsotti Date: Wed, 03 Oct 2012 06:22:14 GMT Subject: Re: erratic behavior commit --allow-empty Message-ID: In-Reply-To: <506BCF19.7020800@viscovery.net> Hi PJ and Hannes, try to run the last script that I posted, with and without a sleep 1 before the last commit: git init echo "aaa" >f1 git add f1 git commit -m A git checkout --orphan sources git commit -m A --allow-empty and git init echo "aaa" >f1 git add f1 git commit -m A git checkout --orphan sources sleep 1 git commit -m A --allow-empty In the first one, no new commit is created, and the "sources" branch is not orphan (you can easily see it with the git gui). In the second one, a new commit is created, and the "sources" branch is orphan, as expected. -Angelo