public String summarizeComment(){
  if (comment == null)   return null;
  String[] lines=comment.split("\\r?\\n");
  return lines[0];
}

public String summarizeComment ( ) { if ( comment == null ) return null ; String [ ] lines = comment . split ( "\\r?\\n" ) ; return lines [ 0 ] ; }
return a shortened form of the comment , or null if we have no comment . designed to reduce git commit messages to just their summary line .
