[p4] I line ending proposal

Jason Williams streak at narus.com
Wed Aug 15 20:00:37 PDT 2007

It sounds like many different people have many different requirements around this.
Maybe I missed some of the thread, but has anyone considered using a trigger to handle this kinda thing?
People seem to know exactly which files they want with which line ending.
I know some apps (Visual Studio) are pretty picky about the line endings on its files.
The trigger would likely work the same as modifications to the typemap.
Just a thought...


From: perforce-user-bounces at perforce.com on behalf of Ivey, William
Sent: Wed 8/15/2007 11:18 AM
To: perforce-user at perforce.com
Subject: [p4] I line ending proposal

Here's my idea of what I'd like to see as far as text file line ending

handling in Perforce. Thought I'd toss this out for comment.

Introduce a file type modifier which coerces a file into the desired

type, allowing the setting to be applied file-by-file or through


            +W      CR/LF

            +U       LF

            +M       CR

Add a new LineEnd: option, "filetype", which responds to the new

file type modifier and could be added to an existing option as in:




Unmodified options would retain their current meanings.


perforce-user mailing list  -  perforce-user at perforce.com

More information about the perforce-user mailing list