cherry-pick: fix docs describing handling of empty commits