private static String parseComment()

in src/com/intellij/vssSupport/commands/HistoryParser.java [175:196]


  private static String parseComment( final String[] lines, int startIndex )
  {
    StringBuffer comment = new StringBuffer();
    int i = startIndex;
    if( i < lines.length &&
        ( lines[ i ].startsWith( COMMENT_SIG ) || lines[ i ].startsWith( LABEL_COMMENT_SIG ) ))
    {
      if( lines[ i ].startsWith( COMMENT_SIG ) )
        lines[ i ] = lines[ i ].substring( COMMENT_SIG.length() );
      else
        lines[ i ] = lines[ i ].substring( LABEL_COMMENT_SIG.length() );
      
      while( i < lines.length && lines[ i ].length() > 0 )
      {
        if( comment.length() > 0 )
          comment.append( "\n" );
        comment.append( lines[ i ] );
        i++;
      }
    }
    return comment.toString();
  }