Thread: Using WinMerge

Results 1 to 10 of 10

Threaded View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Using WinMerge

    Using WinMerge

    You can install WinMerge by downloading the latest version from their website at: http://winmerge.sf.net

    After installing, run it.

    To compare files press CTRL-O (File | Open) and choose the desired individual files to compare.
    Or, drag-and-drop files from an explorer window onto the WinMerge window. The 2nd file you drag onto WinMerge needs to be dragged onto the 2nd filename box.
    Click OK, and the files' contents will be compared, with differences highlighted.

    There are arrow buttons in the navigation bar to allow you to move down and up thru known differences, and left/right to copy text from one to the other.

    ESC exits. If you've made any changes, you'll be prompted to save them, for both files (if relevant).

    When comparing, if you see only left-side or right-side files, click on the "View" menu and choose "Show Different Items".
    Probably best to *not* choose "Show Identical Items" because if the files are identical, you don't need to review them.


    To compare entire folders, do the same as for files above, but only enter folder names (or drag-and-drop). BE SURE TO CHECK THE "Recursive" CHECKBOX so that it knows to compare files in subdirectories too.

    You'll see a list of files after comparison. Under the "View" menu, deselect "Identical Files". You can optionally enable/disable left/right comparison results too.

    To look at diff's in displayed files, double-click or press Enter on a highlighted entry. Edit as described above for individual file diff's.


    Preventing it from flagging line-endings as changes

    If your FTP program mangles your files by changing line-endings, you'll want to tell WinMerge to ignore carriage return differences.


    Optional Configuration:
    Choose Tools | Filters | Linefilters tab and check the "Ignore lines..." box, and enter this:
    (Prior to WinMerge v2.2, choose: Edit | Options | Filters and check the RegEx box)
    Code:
    //.*
    [/]{2}.*[\|\+]*
    [/]{2}\s*\$[\s]?Id: .*\$
    ^ \* @version \$Id:.*\$
    #\s*\$[\s]?Id: .*
    This will tell WinMerge to ignore commented text as well as common header components in each file.
    This allows comparing between ZC release versions without having to worry about files that only have changes in the headers or in commented text.




    In terms of replying to this post, please keep discussion only to issues regarding WinMerge. If you have questions about Zen Cart or editing Zen Cart files or Upgrading Zen Cart, please post those in a separate thread. Thanks!
    Last edited by DrByte; 26 Nov 2010 at 09:12 AM.

 

 

Similar Threads

  1. When using Winmerge it appears every file shows up as different
    By 1234go in forum Upgrading from 1.3.x to 1.3.9
    Replies: 16
    Last Post: 20 Nov 2014, 01:16 AM
  2. Using WinMerge - Topic Revisited
    By ScriptJunkie in forum Upgrading from 1.3.x to 1.3.9
    Replies: 15
    Last Post: 17 Dec 2011, 07:41 PM
  3. Using WinMerge -Not
    By northfork in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 23 Mar 2011, 07:17 PM
  4. Upgrade 1.3.0.2 to 1.3.6 - Why winmerge when using override system?
    By Steve G. in forum Upgrading from 1.3.x to 1.3.9
    Replies: 10
    Last Post: 18 Nov 2006, 04:06 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR