Make 'git :ok-statuses handling more generic.

Rather than requiring it to be a collection, it can also be a
function.