optionally expand staged section upon commit

Closes #806.

Suggested-By: Thomas Riccardi <riccardi.thomas@gmail.com>