From 9c6b6924cecf4d718b2a4a745e20f3118d55c073 Mon Sep 17 00:00:00 2001 From: Jacob Gustafson <7557867+Poikilos@users.noreply.github.com> Date: Thu, 30 May 2024 10:42:56 -0400 Subject: [PATCH 1/2] Create .gitattributes (help linguist get the language tags right for GitHub) --- .gitattributes | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b3c4f8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,37 @@ +# See + +# * linguist-vendored +# or: +# data/* linguist-vendored +# *.ME linguist-vendored +# ^ such as READ.ME etc, otherwise sometimes detected as "Roff" +# *.bas linguist-vendored=false + +# To allow C to be detected, instead of the above just fix BASIC identification: +*.ME linguist-vendored +QBASIC.TXT.1 linguist-vendored +ISSUE7.FAN.1 linguist-vendored +# Linguist detects C-like extensions but they are really plain text files: +gwbasic/hoard-of-gwbasic/TVDog/mymouse/MANUAL.C linguist-vendored +# Linguist detects C-like extensions but they are really BASIC: +# These have unexpected extensions: +hoard-of-gwbasic/ProgrammersHeaven/upaint/1.1 linguist-language=BASIC +hoard-of-gwbasic/ProgrammersHeaven/upaint/2.2 linguist-language=BASIC +hoard-of-gwbasic/ProgrammersHeaven/upaint/3.3 linguist-language=BASIC +hoard-of-gwbasic/ProgrammersHeaven/upaint/4.4 linguist-language=BASIC +hoard-of-gwbasic/ProgrammersHeaven/upaint/5.5 linguist-language=BASIC +hoard-of-gwbasic/ProgrammersHeaven/MOON016/FFBLK.H linguist-language=BASIC +*.MOO linguist-language=BASIC +# These have expected extensions but linguist detects language incorrectly: +*.BAS linguist-language=BASIC +# ^ otherwise sometimes detected as "AGS Script" or "FreeBasic" +*.ASC linguist-language=BASIC +# ^ otherwise sometimes detected as "AGS Script" +*.BI linguist-language=BASIC +# ^ otherwise sometimes detected as "FreeBasic" etc +*.INC linguist-language=BASIC + + +README.md linguist-documentation=true +# or: +# doc/* linguist-documentation From 183d2bd2e354bb7d1f8a1c515463bc794bd56b5b Mon Sep 17 00:00:00 2001 From: Jacob Gustafson <7557867+Poikilos@users.noreply.github.com> Date: Thu, 30 May 2024 10:49:59 -0400 Subject: [PATCH 2/2] Fix comments. --- .gitattributes | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitattributes b/.gitattributes index 9b3c4f8..55d58ea 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,21 +7,22 @@ # ^ such as READ.ME etc, otherwise sometimes detected as "Roff" # *.bas linguist-vendored=false -# To allow C to be detected, instead of the above just fix BASIC identification: +# To allow C and other languages for a mixed language repo, instead of the above just fix BASIC identification: + *.ME linguist-vendored QBASIC.TXT.1 linguist-vendored ISSUE7.FAN.1 linguist-vendored -# Linguist detects C-like extensions but they are really plain text files: -gwbasic/hoard-of-gwbasic/TVDog/mymouse/MANUAL.C linguist-vendored -# Linguist detects C-like extensions but they are really BASIC: # These have unexpected extensions: hoard-of-gwbasic/ProgrammersHeaven/upaint/1.1 linguist-language=BASIC hoard-of-gwbasic/ProgrammersHeaven/upaint/2.2 linguist-language=BASIC hoard-of-gwbasic/ProgrammersHeaven/upaint/3.3 linguist-language=BASIC hoard-of-gwbasic/ProgrammersHeaven/upaint/4.4 linguist-language=BASIC hoard-of-gwbasic/ProgrammersHeaven/upaint/5.5 linguist-language=BASIC -hoard-of-gwbasic/ProgrammersHeaven/MOON016/FFBLK.H linguist-language=BASIC *.MOO linguist-language=BASIC +# Linguist detects C-like extensions but this one is BASIC: +hoard-of-gwbasic/ProgrammersHeaven/MOON016/FFBLK.H linguist-language=BASIC +# Linguist detects C-like extensions but this one is a plain text file: +gwbasic/hoard-of-gwbasic/TVDog/mymouse/MANUAL.C linguist-vendored # These have expected extensions but linguist detects language incorrectly: *.BAS linguist-language=BASIC # ^ otherwise sometimes detected as "AGS Script" or "FreeBasic" @@ -31,7 +32,6 @@ hoard-of-gwbasic/ProgrammersHeaven/MOON016/FFBLK.H linguist-language=BASIC # ^ otherwise sometimes detected as "FreeBasic" etc *.INC linguist-language=BASIC - README.md linguist-documentation=true # or: # doc/* linguist-documentation