app/decorators/commit_decorator.rb
# Returns the commits description
#
# cut off, ellipses (`&hellp;`) are prepended to the commit message.
Returns the commits description
cut off, ellipses (`&hellp`) are prepended to the commit message.
Returns the commits description cut off ellipses ( ` &hellp ` ) are prepended to the commit message .
def description
    description = safe_message
    title_end = description.index(/\n/)
    if (!title_end && description.length > 80) || (title_end && title_end > 80)
      "&hellip;".html_safe << description[70..-1]
    else
      description.split(/\n/, 2)[1].try(:chomp)
    end
  end
def description description = safe_message title_end = description . index ( / \n / ) if ( ! title_end && description . length > 80 ) || ( title_end && title_end > 80 ) "&hellip;" . html_safe << description [ 70 .. - 1 ] else description . split ( / \n / , 2 ) [ 1 ] . try ( :chomp ) end end
Returns the commits description
cut off, ellipses (`&hellp;`) are prepended to the commit message.
Returns the commits description cut off ellipses ( ` &hellp ; ` ) are prepended to the commit message .