linguist icon indicating copy to clipboard operation
linguist copied to clipboard

Repository misclassifed as Roff

Open fabrithedev opened this issue 9 years ago • 9 comments

https://github.com/FabriDamazio/Free-Inventory-Manager

fabrithedev avatar Aug 07 '17 01:08 fabrithedev

This file is detected as Roff. You can change that using Linguist overrides.

pchaigno avatar Aug 07 '17 04:08 pchaigno

@FabriDamazio I believe @pchaigno meant to point to this file, here:

https://github.com/FabriDamazio/Free-Inventory-Manager/blob/master/FreeInventoryManager/FreeInventoryManager.Web/App_Data/Logs/Logs.txt.1

It's the .1 suffix that's causing the misclassification, and this file is a whopping 9.68 MBs in filesize.

To fix this, add a .gitattributes file to your project's base directory, and add the following line:

*.1 linguist-language=Text

Alhadis avatar Aug 07 '17 18:08 Alhadis

What he said :point_up:

pchaigno avatar Aug 07 '17 18:08 pchaigno

Ty, i followed the instructions and created the file with the line. It didint worked yet. I need wait some amount of time?

fabrithedev avatar Aug 08 '17 02:08 fabrithedev

It's probably cached. It should refresh the next time you modify a source file.

Alhadis avatar Aug 08 '17 03:08 Alhadis

Ty, i followed the instructions and created the file with the line. It didint worked yet. I need wait some amount of time?

fabrithedev avatar Aug 08 '17 03:08 fabrithedev

Yes, it's fine now:

$ linguist
71.21%  JavaScript
19.90%  C#
8.81%   CSS
0.06%   HTML
0.01%   ASP

The language bar should refresh next time you commit something.

pchaigno avatar Aug 08 '17 04:08 pchaigno

What he said. ☝️

Alhadis avatar Aug 08 '17 04:08 Alhadis

Lmao! Thank you!

fabrithedev avatar Aug 08 '17 11:08 fabrithedev