turn off w,j,safe,writeCmd
more robust when commit_date is missing
allow branch name as argument
handle missing commit_date
Revert "handle missing commit_date"

This reverts commit aaf431eef0340f567e0a4dbc5a4c470b5a590b66.
turn off writeCmd