Coder Social home page Coder Social logo

Comments (3)

SpacePossum avatar SpacePossum commented on June 3, 2024

Hi!
The missing No newline... is a known deviation of the udiff format. The StrictUnifiedDiffOutputBuilder was developed and added as alternative such that people who like the output to be the same as udiff can use it. So if you want strict udiff, with the No newline... output I would suggest using the strict -builder, unless maybe I'm not sure what you question/suggestion is here.

from diff.

cedric-anne avatar cedric-anne commented on June 3, 2024

Hi,

Honestly, I think this deviation is not known by most of developers. As far as I remember, this missing No newline was causing issues with usage of the patch utility. Indeed, I was not able to apply a reverse patch generated this way.

Anyway, I found a solution to this, so I will close this issue as it seems that this behaviour looks correct to you.

Thanks

from diff.

SpacePossum avatar SpacePossum commented on June 3, 2024

I agree it is not widely known to developers and I think in some respects it might be better for the diff package on its own that the default would be the strict-format output builder. However, given the package history and BC promise, it might difficult or more of problem than it would solve.
Just a friendly reminder that I'm just someone saying things, I'm not not a member or anything so you could always make your case to the maintainer :) Thanks!

from diff.

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.