How to wrap git commit comments? -


Is a git command a way to wrap the comment (when viewed through git logs ), So they are not cut at the end of the line? It seems that there should be a very simple solution, but I can not find one.

Thank you.

2011 Edit: Default pager to go
At the end of my reply the comment is still standing: Even if you see a long-standing message, it does not mean that other devices that are dealing with (long) messages will be able to process them.


According to the original answer (January 2010): Message format policy:

Because GIT log does not wrap any type, The line length needs to be formatted

  • git logs does not have special special wrapping of committed messages. With the default pager of low-s , it means that your paragraphs are far from the edge of the screen, making it difficult to read.
    At a 80 column terminal, if we decrease the 4 columns for the indent on the left and decrease the 4 for the homogeneity on the right, we have been left with 72 columns.
  • git format-patch --stdout converts a series that uses messages for a series of messages using a series of emails.
    Good Email NetText We wrap our plain text emails as if the 80 column terminal is the place for some levels of nested answer indicators without overflow. Generally, use an editor to create your own commitments instead of sending them on the command line: in the form of

.

  • Summary of a single, concise, committment
  • An empty row
  • Li> Followed by supporting the details

    All sources (which contain comments for 50 characters for the first line) need to comment on yourself In the form, because Git was able to deal with longer lines, other tools in the processing chain (email, patch, ...) are The breakfast.


    Comments

    Popular posts from this blog

    oracle - The fastest way to check if some records in a database table? -

    php - multilevel menu with multilevel array -

    jQuery UI: Datepicker month format -