Skip to main content
Commonmark migration
Source Link

Have you tried just forcing diff to treat the files as text:

diff -ua abc abc2

As explained [here][1]here.

  • -u output NUM (default 3) lines of unified context
  • -a treat all files as text

This should get you a patch. The downside of this is the 'lines' could be quite long and that could bloat the patch. [1]: https://www.gnu.org/software/diffutils/manual/html_node/Binary.html

Have you tried just forcing diff to treat the files as text:

diff -ua abc abc2

As explained [here][1].

  • -u output NUM (default 3) lines of unified context
  • -a treat all files as text

This should get you a patch. The downside of this is the 'lines' could be quite long and that could bloat the patch. [1]: https://www.gnu.org/software/diffutils/manual/html_node/Binary.html

Have you tried just forcing diff to treat the files as text:

diff -ua abc abc2

As explained here.

  • -u output NUM (default 3) lines of unified context
  • -a treat all files as text

This should get you a patch. The downside of this is the 'lines' could be quite long and that could bloat the patch.

deleted 35 characters in body
Source Link
user1794469
  • 4.2k
  • 1
  • 27
  • 42

Have you tried just forcing diff to treat the files as text:

diff -unaua abc abc2

As explained [here][1].

  • -u output NUM (default 3) lines of unified context
  • -n output an RCS format diff
  • -a treat all files as text

This should get you a patch. The downside of this is the 'lines' could be quite long and that could bloat the patch. [1]: https://www.gnu.org/software/diffutils/manual/html_node/Binary.html

Have you tried just forcing diff to treat the files as text:

diff -una abc abc2

As explained [here][1].

  • -u output NUM (default 3) lines of unified context
  • -n output an RCS format diff
  • -a treat all files as text

This should get you a patch. The downside of this is the 'lines' could be quite long and that could bloat the patch. [1]: https://www.gnu.org/software/diffutils/manual/html_node/Binary.html

Have you tried just forcing diff to treat the files as text:

diff -ua abc abc2

As explained [here][1].

  • -u output NUM (default 3) lines of unified context
  • -a treat all files as text

This should get you a patch. The downside of this is the 'lines' could be quite long and that could bloat the patch. [1]: https://www.gnu.org/software/diffutils/manual/html_node/Binary.html

Source Link
user1794469
  • 4.2k
  • 1
  • 27
  • 42

Have you tried just forcing diff to treat the files as text:

diff -una abc abc2

As explained [here][1].

  • -u output NUM (default 3) lines of unified context
  • -n output an RCS format diff
  • -a treat all files as text

This should get you a patch. The downside of this is the 'lines' could be quite long and that could bloat the patch. [1]: https://www.gnu.org/software/diffutils/manual/html_node/Binary.html