Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8314543

gitattributes: make diffs easier to read

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • 22
    • 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

            ksakata Koichi Sakata
            erikj Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: