Giter VIP home page Giter VIP logo

Comments (7)

driusan avatar driusan commented on June 17, 2024 1

The -U0 is in git diff ie here: https://github.com/git/git/blob/master/t/t1002-read-tree-m-u-2way.sh#L82

I'm considering adding a hack for that special case in diff or adding a patch, but at some point we should try and fix it to be compatible if we can.

from dgit.

sirnewton01 avatar sirnewton01 commented on June 17, 2024

I came across the -m case too and patched it for the ignore tests. The documentation that I read seemed to indicate that there must be a space, but yet the official git implementation allows it.

Where is the -U0 option?

from dgit.

sirnewton01 avatar sirnewton01 commented on June 17, 2024

I'm thinking that we might work around this with some pre-processing of the known args before handing off to flag package to parse replace [... "-U0" ...] with [... "-U", "0", ...]. The documentation won't look quite right, but at least it will work with the official usages.

from dgit.

sirnewton01 avatar sirnewton01 commented on June 17, 2024

Will this help get us closer to passing the #112 tests?

from dgit.

driusan avatar driusan commented on June 17, 2024

Not to the best of my knowledge, I think the glued flag variants are more common for diff and friends

from dgit.

sirnewton01 avatar sirnewton01 commented on June 17, 2024

I have a PR #196 open to work around this in commit -m and diff-tree -U.

from dgit.

sirnewton01 avatar sirnewton01 commented on June 17, 2024

We have an approach for this now that can be handled on a case-by-case basis as there are flags that the official git client supports that are glued. I'm closing this for now.

from dgit.

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.