Giter VIP home page Giter VIP logo

Comments (4)

derrickstolee avatar derrickstolee commented on August 17, 2024

XCode uses libgit2 as its backend instead of executing the version of git on your PATH (which is how Visual Studio does it).

Do not use any version of Git other than one from microsoft/git or you might have unpredictable results. Other versions do not know how to get missing objects from Azure DevOps and hence may have failures you do not expect.

Please avoid using XCode's version control tools. Instead, use git from the command line.

from git.

miku1958 avatar miku1958 commented on August 17, 2024

Hi @derrickstolee , thank you for your reply.

The only useful feature of Xcode's Source Control is the diff function, which is very necessary for Office Mac developers, and others are usually used from the command line or other GUIs that use command-line git.

What I mean is, if it's possible to fix it with the official git status, maybe you can see if it can be adapted.

from git.

derrickstolee avatar derrickstolee commented on August 17, 2024

By running git status with standard Git, you probably rewrote the .git/index file to no longer be sparse (microsoft/git assumes index.sparse=true by default, while normal Git does not), allowing libgit2 to understand it. The sparse index is important for performance reasons, but you could disable it with git config index.sparse false and that might enable XCode diffs to work. When libgit2 learns to parse a sparse index (no idea when) and XCode upgrades to that version, you would be able to take advantage of the sparse index again.

from git.

miku1958 avatar miku1958 commented on August 17, 2024

Test with removing .git/index, it did work.
Thanks for the suggestion

from git.

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.