Skip to content

Feature request: File creation from diff -ruN #8

@kit-ty-kate

Description

@kit-ty-kate

The documentation of GNU patch states:

You can create a file by sending out a diff that compares /dev/null or an empty file dated the
Epoch (1970-01-01 00:00:00 UTC) to the file you want to create.

This is used, for example by (GNU) diff -ruN, where the -N option reads:

-N, --new-file
treat absent files as empty

Currently, this implementation of patch would return Edit on such an input instead of the expected Create

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions