Coder Social home page Coder Social logo

Comments (2)

chrisd8088 avatar chrisd8088 commented on September 15, 2024

Some additional valuable suggestions from @bk2204, regarding how we could use Git config extensions:

Git 2.7.0 and newer have support for an extensions section in the config. If you set core.repositoryFormatVersion to 1, then you can set extensions, and if the git binary in question doesn’t understand them, it will abort. Therefore, for VFS for Git repositories, it’s possible to simply create your own extension, say, extensions.vfsforgit, and set it to 1 in the repository config file. A suitably enabled Git will know about it, but if there’s a different Git on the system that isn’t capable of that, it will fail in a noisy way, making it obvious what’s going on. libgit2 should also fail here, which we’d want as well.

That doesn’t solve the problem of finding the right Git, but it does ensure that if we use PATH, we don’t have to worry as much that we accidentally have the wrong Git. We won’t, for example, have to worry about data corruption.

from vfsforgit.

kivikakk avatar kivikakk commented on September 15, 2024

which-based solution at microsoft#999.

from vfsforgit.

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.