pharo icon indicating copy to clipboard operation
pharo copied to clipboard

New Project should include git attributes

Open astares opened this issue 3 years ago • 2 comments

When creating a new project with Pharo/Iceberg the git attributes should be set to Smalltalk by creating a file .gitattributes with the following contents

*.st linguist-language=Smalltalk

See https://github.com/ba-st/RenoirSt/blob/release-candidate/.gitattributes for an example.

astares avatar Jul 30 '21 06:07 astares

Somewhat related - it would be useful if a project also included a .project file with. { 'srcDirectory' : 'src' } as this is probably the best default to match git usage in most languages. And its annoying when you forget and have everything stuck in the root.

timm-mwp avatar Aug 01 '21 12:08 timm-mwp

When creating a new project with Pharo/Iceberg the git attributes should be set to Smalltalk by creating a file .gitattributes with the following contents

*.st linguist-language=Smalltalk

See https://github.com/ba-st/RenoirSt/blob/release-candidate/.gitattributes for an example.

Github's linguist package understands that *.st files are Smalltalk: https://github.com/github/linguist/blob/212946f47cd7a2505a71bd82f65b1263a6b64395/lib/linguist/languages.yml#L6168

Perhaps this is new since this issue was filed, but a custom linguist-language setting is probably not needed any more.

GitHub
A DSL enabling programmatic cascading style sheet generation for Pharo Smalltalk - RenoirSt/.gitattributes at release-candidate · ba-st/RenoirSt
GitHub
Language Savant. If your repository's language is being reported incorrectly, send us a pull request! - linguist/languages.yml at 212946f47cd7a2505a71bd82f65b1263a6b64395 · github/linguist

matta avatar Jul 06 '22 15:07 matta