Skip to content

Using patch command to apply patches when Git indexes don't match #8

Closed as not planned

Description

@frixaco

I just discovered that I can run patch -p1 <patch.file> to apply diffs and seems like it's less strict than git apply. Also there's diff command which generates diffs just like git diff. I suggest (to myself) to investigate both commands (diff and patch) and see how they compare to Git's diff and apply. If it's just diff to create the project and then just patch to apply it without any additional steps like with Git, I'll switch to them.

Activity

  1. added this to the 1.0.0 milestone on Aug 5, 2022
  2. self-assigned this
    on Aug 5, 2022
  3. frixaco commented on Sep 1, 2022

    @frixaco
    OwnerAuthor

    Git throws No valid patches in input (allow with "--allow-empty") for empty diffs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions