[p4] How many lines of code have I written?

Chris Helck Chris.Helck at us.icap.com
Thu Jan 21 09:55:31 PST 2010


Frank,
Perhaps you're right. I took a look at diff and it seems to run on the
client which gives me total control. I believe my complaint should have
been directed against diff2 which runs on the server. In any case this
is not a serious problem, and it's not immediately obvious to me how it
could be improved.
-Chris

-----Original Message-----
From: Frank Cusack [mailto:fcusack at fcusack.com] 
Sent: Thursday, January 21, 2010 12:27 PM
To: Chris Helck; perforce-user at perforce.com
Subject: Re: [p4] How many lines of code have I written?

On January 11, 2010 1:38:33 PM -0500 Chris Helck
<Chris.Helck at us.icap.com>
wrote:
> It would be nice if the output of p4 diff was compatible with GNU diff

> and diffstat in particular -- though perhaps this has changed, I'm 
> stuck on P4 2007.1.

It is and always has been.  Only the header line (indicating the files)
is different, and my guess is that this is because of variability on
where files can be in the depot vs where they are on the filesystem.

This does break diffstat but it's trivially fixable by wrapping p4 diff
and printing a compatible header line.

-frank

**********************************************************************
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**********************************************************************





More information about the perforce-user mailing list