commti: Fix potential segfault & clarify commit summary generation

I'm not sure how the maintainers feel about inlining functions, but `git__is_summary_end` can easily be made into a macro, and is a very trivial proposed change.

Potential segfault is due to pointer dereference before asserting its vaildity.