Results 1 to 4 of 4

Thread: Create Patch for Directory Containing Binary Files

  1. #1
    Join Date
    May 2008
    Beans
    1,029

    Question Create Patch for Directory Containing Binary Files

    I know how to use the diff command to create patches for source. But diff seems to bypass binary files. Is there a way to include differences in binary files?

    Example:
    Code:
    /old/foo/bar.txt
    /old/foo/bar.png
    
    /new/foo/bar.txt
    /new/foo/bar.png

  2. #2
    Join Date
    Aug 2011
    Location
    47°9′S 126°43W
    Beans
    1,877
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Re: Create Patch for Directory Containing Binary Files

    No, because it is usually pointless. For a PNG for instance, even a very small color change will change all the bytes in the file. So you usually end up replacing th whole binary anyway.

  3. #3
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,297
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Create Patch for Directory Containing Binary Files

    Quote Originally Posted by ofnuts View Post
    No, because it is usually pointless. For a PNG for instance, even a very small color change will change all the bytes in the file. So you usually end up replacing th whole binary anyway.
    That is true for PNGs, but binary patches can still be useful for other types of files.

    @dodle: That's not what diff is for; use something like xdelta.
    「明後日の夕方には帰ってるからね。」


  4. #4
    Join Date
    May 2008
    Beans
    1,029

    Re: Create Patch for Directory Containing Binary Files

    Thanks for the info . I realize now that what I was trying to do is unecessary for source revision control systems.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •