Put the new commit header in the window
Preserve header collapsed state

Also fix adding parents to the header.