Diff file trouble applying?

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Diff file trouble applying?

    I've got a diff file that I think is a patch for a bunch of file in a
    directory. How do I apply this file?

    I thought it was

    #patch myfile.diff


    But that does nothing. I must be missing something. The diff file
    contains diff's for a nuch of files, not just a single file. Do I need a
    copy of the original file as was or does the diff file contain everything
    it needs to make the patch(s)?

    J

    Charley Guest

  2. Similar Questions and Discussions

    1. trouble with log file
      I have a problem in the past few days on my unix machine runing checkpoint. there is a file in the /export/home/logs/log_date... that contains...
    2. Applying one master page to all documents in a book file
      Is there a way to apply one master page to all documents in a book file?
    3. Applying Actions to File Browser Selections
      I use the file browser a lot. I also use Batch processing a lot. I also have a lot of actions. To apply a set of actions to a set of images in a...
    4. Applying ICS gives error 2 - file missing....
      I have worked with ICS for years on several setups. But this one I can't fix - anyone out there that can? - Have created a dialup connection that...
    5. BuildEnvironment trouble after applying SUN-Patch
      Since applying on of suns latests os-patches we got many trouble with our build-platform. Sun replaced the name of on internal structure. In sight...
  3. #2

    Default Re: Diff file trouble applying?

    On Sat, 11 Oct 2003 20:13:27 GMT, Charley <johnson@jhilb.com> wrote:
    >I've got a diff file that I think is a patch for a bunch of file in a
    >directory. How do I apply this file?
    >
    >I thought it was
    >
    >#patch myfile.diff
    >
    >But that does nothing. I must be missing something. The diff file
    >contains diff's for a nuch of files, not just a single file. Do I need a
    >copy of the original file as was or does the diff file contain everything
    >it needs to make the patch(s)?
    Usually it's:

    patch -p0 < myfile.diff

    Or possibly -p1 depending on what directory you're in and whether the patch
    included a top-level directory or not.

    --
    Andy Hassall (andy@andyh.co.uk) icq(5747695) ([url]http://www.andyh.co.uk[/url])
    Space: disk usage analysis tool ([url]http://www.andyhsoftware.co.uk/space[/url])
    Andy Hassall Guest

  4. #3

    Default Re: Diff file trouble applying?

    Andy Hassall <andy@andyh.co.uk> wrote in
    news:ebpgovgegtbnb4mhppln110it2er9jctl3@4ax.com:

    OK, thanks, I'll give that a try.

    > On Sat, 11 Oct 2003 20:13:27 GMT, Charley <johnson@jhilb.com> wrote:
    >
    >>I've got a diff file that I think is a patch for a bunch of file in a
    >>directory. How do I apply this file?
    >>
    >>I thought it was
    >>
    >>#patch myfile.diff
    >>
    >>But that does nothing. I must be missing something. The diff file
    >>contains diff's for a nuch of files, not just a single file. Do I
    >>need a copy of the original file as was or does the diff file contain
    >>everything it needs to make the patch(s)?
    >
    > Usually it's:
    >
    > patch -p0 < myfile.diff
    >
    > Or possibly -p1 depending on what directory you're in and whether the
    > patch
    > included a top-level directory or not.
    >
    > --
    > Andy Hassall (andy@andyh.co.uk) icq(5747695) ([url]http://www.andyh.co.uk[/url])
    > Space: disk usage analysis tool ([url]http://www.andyhsoftware.co.uk/space[/url])
    >
    Charley Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139