{"thread":{"id":"64951","subject":"color.diff.<slot> for commit headers (Author, Date, ...)","startedAt":"2026-02-08T18:32:40Z","lastAt":"2026-02-08T18:50:30Z","messageCount":2,"participants":["Alejandro Colomar"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"535486","messageId":"aYjVlRqvafWeePvi@devuan","threadId":"64951","inReplyTo":null,"subject":"color.diff.<slot> for commit headers (Author, Date, ...)","fromName":"Alejandro Colomar","fromEmail":"alx@kernel.org","sentAt":"2026-02-08T18:32:37Z","receivedAt":"2026-02-08T18:32:40Z","isPatch":false,"sender":{"key":"alx@kernel.org","avatar":null},"body":"Hi!\n\nAccording to git-config(1):\n\n     color.diff.<slot>\n         Use customized color for diff colorization.  <slot> specifies\n         which part of the patch to use the specified color, and is one\n         of context (context text - plain is a historical synonym),\n         meta (metainformation), frag (hunk header), func (function in\n         hunk header), old (removed lines), new (added lines), commit\n         (commit headers), whitespace (highlighting whitespace errors),\n         oldMoved (deleted lines), newMoved (added lines),\n         oldMovedDimmed, oldMovedAlternative,\n         oldMovedAlternativeDimmed, newMovedDimmed, newMovedAlternative\n         newMovedAlternativeDimmed (See the <mode> setting of\n         --color-moved in git‐diff(1) for details), contextDimmed,\n         oldDimmed, newDimmed, contextBold, oldBold, and newBold (see\n         git‐range‐diff(1) for details).\n\ncolor.diff.commit (commit headers) would seem to be the slot for\ncoloring Author, Date, etc.  However, that colors the commit hash\nexclusively.\n\nThe documentation should be updated to reflect reality.  Maybe\n\n\ts/headers/hash/\n\nAlso, I'm interested in coloring the actual header fields; that is\nAuthor, Date, etc.  I think a good name for that slot could be\n'header'.  Would you mind adding that?\n\n\nHave a lovely day!\nAlex\n\n-- \n<https://www.alejandro-colomar.es>\n"},{"id":"535487","messageId":"aYjauDayL_WIBXV2@devuan","threadId":"64951","inReplyTo":"aYjVlRqvafWeePvi@devuan","subject":"Re: color.diff.<slot> for commit headers (Author, Date, ...)","fromName":"Alejandro Colomar","fromEmail":"alx@kernel.org","sentAt":"2026-02-08T18:50:27Z","receivedAt":"2026-02-08T18:50:30Z","isPatch":false,"sender":{"key":"alx@kernel.org","avatar":null},"body":"On 2026-02-08T19:32:40+0100, Alejandro Colomar wrote:\n> Hi!\n> \n> According to git-config(1):\n> \n>      color.diff.<slot>\n>          Use customized color for diff colorization.  <slot> specifies\n>          which part of the patch to use the specified color, and is one\n>          of context (context text - plain is a historical synonym),\n>          meta (metainformation), frag (hunk header), func (function in\n>          hunk header), old (removed lines), new (added lines), commit\n>          (commit headers), whitespace (highlighting whitespace errors),\n>          oldMoved (deleted lines), newMoved (added lines),\n>          oldMovedDimmed, oldMovedAlternative,\n>          oldMovedAlternativeDimmed, newMovedDimmed, newMovedAlternative\n>          newMovedAlternativeDimmed (See the <mode> setting of\n>          --color-moved in git‐diff(1) for details), contextDimmed,\n>          oldDimmed, newDimmed, contextBold, oldBold, and newBold (see\n>          git‐range‐diff(1) for details).\n> \n> color.diff.commit (commit headers) would seem to be the slot for\n> coloring Author, Date, etc.  However, that colors the commit hash\n> exclusively.\n> \n> The documentation should be updated to reflect reality.  Maybe\n> \n> \ts/headers/hash/\n> \n> Also, I'm interested in coloring the actual header fields; that is\n> Author, Date, etc.  I think a good name for that slot could be\n> 'header'.  Would you mind adding that?\n\nAnother thing I'd like to be able to color independently is the subject\n(the first line of the commit message).  'subject' would be a good name\nfor that slot.\n\n\nCheers,\nAlex\n\n> \n> \n> Have a lovely day!\n> Alex\n> \n> -- \n> <https://www.alejandro-colomar.es>\n\n\n\n-- \n<https://www.alejandro-colomar.es>\n"}]}