Giter VIP home page Giter VIP logo

Comments (3)

andreineculau avatar andreineculau commented on July 18, 2024 2

Nice! I can see when I find some time and contribute with a PR with the drivers I have.

One suggestion is to name the custom drivers with a prefix e.g. custom-gitattributes-, to avoid conflicts. Silly example to illustrate what I mean.

# gitattributes
# include https://github.com/alexkaratarakis/gitattributes/blob/master/sql.gitattributes
*.sql linguist-detectable=true
*.sql linguist-language=sql
*.sql diff=custom-gitattributes-sql

# override diff driver
*.sql diff=custom-andreineculau-sql
# gitconfig
# include https://github.com/alexkaratarakis/gitattributes/blob/master/sql.gitconfig
[diff "custom-gitattributes-sql"]
    textconv = sql-formatter

# add my own diff drivers
[diff "custom-andreineculau-sql"]
    textconv = sql-formatter --uppercase
``

from gitattributes.

alexkaratarakis avatar alexkaratarakis commented on July 18, 2024 1

Sorry for the delay!

I think defining custom diff drivers is reasonable for the scope of this repo.

We could put them in files ending in gitconfig since custom diff drivers are supposed to go there, following the existing pattern that this repo and the gitignore repo is following (but I am open to other suggestions of course). Also, possibly in a dedicated folder for custom diff drivers.

from gitattributes.

alexkaratarakis avatar alexkaratarakis commented on July 18, 2024

Yeah, that looks intuitive. 👍

from gitattributes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.