gitattributes: make diffs easier to read

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 22
    • Affects Version/s: 22
    • Component/s: infrastructure
    • None
    • b12

      (Filed on behalf of Andrei Rybak)

      Git supports special hunk headers for several languages in diff output, which make it easier to read diffs of files in that language, generated by Git (git-diff, git-show, git log -p, etc). For details, see git help gitattributes or the online documentation.

      Add entries to the root .gitattributes file to support showing the hunk headers for Java, C, C++, Markdown, Shell script, HTML, and CSS. This makes it easier to read diffs generated by Git.

      See https://mail.openjdk.org/pipermail/skara-dev/2023-August/008108.html

            Assignee:
            Koichi Sakata
            Reporter:
            Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: