Add support for adding directories by using git add instead of git
update-index --add.