Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Oct 19, 2009
  1. @dscho @gitster

    Add strbuf_add_wrapped_text() to utf8.[ch]

    dscho authored gitster committed
    The newly added function can rewrap text according to a given first-line
    indent, other-indent and text width.
    Signed-off-by: Johannes Schindelin <>
Commits on Feb 28, 2007
  1. @dscho

    Actually make print_wrapped_text() useful

    dscho authored Junio C Hamano committed
    Now, it returns the current column, does not add a newline, and you can
    pass a negative indent, to indicate that the indent was already printed.
    With this, you can actually continue in the middle of a paragraph, not
    having to print everything into a buffer first.
    Signed-off-by: Johannes Schindelin <>
    Signed-off-by: Junio C Hamano <>
Commits on Dec 24, 2006
  1. @dscho

    commit-tree: encourage UTF-8 commit messages.

    dscho authored Junio C Hamano committed
    Introduce is_utf() to check if a text looks like it is encoded
    in UTF-8, utf8_width() to count display width, and implements
    print_wrapped_text() using them.
    git-commit-tree warns if the commit message does not minimally
    conform to the UTF-8 encoding when i18n.commitencoding is either
    unset, or set to "utf-8".
    Signed-off-by: Junio C Hamano <>
Something went wrong with that request. Please try again.