only_committed_changes could fail in a git repository merged with git merge -s ours.