• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
FileMerge and line-end filter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FileMerge and line-end filter


  • Subject: FileMerge and line-end filter
  • From: Roel de Jong <email@hidden>
  • Date: Sun, 1 Feb 2004 17:14:41 +0100

Hi All,

I would like to add a filter to FileMerge, such that it does not consider files different if only their line-end convention differ. In particular, when a file has DOS (Cr-Lf) line-ends, I always convert to Unix linefeeds, but want FileMerge to ignore this difference when I use it to compare my work with original source trees, or with updates from people who use other editors.


To achieve this, I tried a filter spec like:

	/usr/bin/tr -d "\r" <$(FILE)

but FileMerge now gives the following error message:

   "Filter /usr/bin/tr -d "\r" <$(FILE) is not working
   properly.  The number of newlines cannot change as
   a result of filtering"


This message results when directly comparing files. When comparing directories, FileMerge just judges all pairs of filtered files equal, even if they have real changes in their text.


Is there a way to solve this?

--
Roel de Jong
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Next by Date: math.h, -lmx and ZeroLink
  • Next by thread: math.h, -lmx and ZeroLink
  • Index(es):
    • Date
    • Thread