Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • heptapod heptapod
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 184
    • Issues 184
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • heptapod
  • heptapodheptapod
  • Issues
  • #437
Closed
Open
Created Mar 09, 2021 by Georges Racinet@gracinet🦑Owner

Provide something like Git attributes

The checked-in .gitattributes file allows to control some aspects of the repository.

In particular, it is interpreted by github-linguist, the engine taking care of programming language analysis, to provide exclusion for vendored libraries and direct detection rules.

As a practical example, .t files used for cram and Mercurial tests are detected as Perl by github-linguist. There is even a dedicated github-linguist issue on the subject. Projects like Octobus' mercurial-devel and evolve could force them to something more appropriate right now. The price to pay would be that it's called .gitattributes and that it probably wouldn't be forward compatible with how native Mercurial repositories will work in the not-so-far future.

There are potentially other use cases for a shared, checked-in configuration file, but we obviously should not call it.gitattributes. Does something similar already exist in Mercurial land that we could piggy-back on ? Should we introduce a .heptapod-attributes?

Edited Mar 09, 2021 by Georges Racinet
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking