Junio C Hamano wrote (2008-05-07 12:13 -0700): > Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes: > > > I am rather interested in the semantics, i.e. if you can punch holes > > into this 3-class approach. > > This is not the 3-class thing, but was done as a lunchtime hack. It > removes more lines than it adds, with real comments ;-). I tested your lunchtime hack from the "pu" branch. I'm perfectly happy with the colored output itself but I noticed some different line feed behaviour that you might want to know. Look at the example below. The first is normal line diff. The second is the same text with the old --color-words behaviour and the last is with the lunchtime hack version. There are only three words added to the text; additions are written as {+word} in the --color-words output. Normal line diff ---------------- -OpenOffice.org has user setting for defining the minimum length for +OpenOffice.org has a user setting for defining the minimum length for words to be hyphenated. By default the word length is counted from the -whole word - even for compound words. For example the word -'elokuvalippu' is 12 characters long. The word will be hyphenated like -'elo-ku-va-lip-pu' in all cases when the minimum word length is set to -12 or less. If the minimum length is set to 13 or more the word is not -hyphenated at all. +whole word - even for compound words. For example the compound word +'elokuvalippu' is considered 12 characters long. The word will be +hyphenated like 'elo-ku-va-lip-pu' in all cases when the minimum word +length is set to 12 or less. If the minimum length is set to 13 or more +the word is not hyphenated at all. With the old --color-words -------------------------- OpenOffice.org has {+a }user setting for defining the minimum length for words to be hyphenated. By default the word length is counted from the whole word - even for compound words. For example the {+compound }word 'elokuvalippu' is {+considered }12 characters long. The word will be hyphenated like 'elo-ku-va-lip-pu' in all cases when the minimum word length is set to 12 or less. If the minimum length is set to 13 or more the word is not hyphenated at all. With the lunchtime hack --color-words ------------------------------------- OpenOffice.org has {+a }user setting for defining the minimum length for words to be hyphenated. By default the word length is counted from the whole word - even for compound words. For example the {+compound }word 'elokuvalippu' is {+considered }12 characters long. The word will be hyphenated like 'elo-ku-va-lip-pu' in all cases when the minimum word length is set to 12 or less. If the minimum length is set to 13 or more the word is not hyphenated at all. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html