[The basic idea looks plausible to me, although I haven't looked in any detail, either at just what it changes in CVS's output, or at how patch would react (various versions of patch; other such programs if any). -kingdon] Date: Tue, 27 Jan 1998 11:13:11 +0000 To: info-cvs@prep.ai.mit.edu From: Andy Piper Subject: patch for diff pathnames Cc: bug-cvs@prep.ai.mit.edu I don't know if anyone has done this already but this patch achieves the same effect as the unofficial path for including file paths in diff output but for cvs's which have diff builtin. The patch is very simple and just modifies the label generation code. andy *** rcs.c.dist Tue Jan 27 11:04:46 1998 --- rcs.c Tue Jan 27 11:05:29 1998 *************** *** 6649,6655 **** char *file; file = last_component (path); ! label = (char *) xmalloc (strlen (file) + (rev == NULL ? 0 : strlen (rev)) + 50); --- 6649,6655 ---- char *file; file = last_component (path); ! label = (char *) xmalloc (strlen (path) + (rev == NULL ? 0 : strlen (rev)) + 50); *************** *** 6658,6664 **** char *date; RCS_getrevtime (rcs, rev, datebuf, 0); date = printable_date (datebuf); ! (void) sprintf (label, "-L%s\t%s\t%s", file, date, rev); free (date); } else --- 6658,6664 ---- char *date; RCS_getrevtime (rcs, rev, datebuf, 0); date = printable_date (datebuf); ! (void) sprintf (label, "-L%s\t%s\t%s", path, date, rev); free (date); } else *************** *** 6675,6681 **** wm->tm_year + 1900, wm->tm_mon + 1, wm->tm_mday, wm->tm_hour, wm->tm_min, wm->tm_sec); ! (void) sprintf (label, "-L%s\t%s", file, datebuf); } } return label; --- 6675,6681 ---- wm->tm_year + 1900, wm->tm_mon + 1, wm->tm_mday, wm->tm_hour, wm->tm_min, wm->tm_sec); ! (void) sprintf (label, "-L%s\t%s", path, datebuf); } } return label; ___ ____ Dr Andy Piper / _ \___ ________ _/ / Solutions_ (require 'disclaimer) / ___/ _ `/ __/ _ `/ / / _ `/\ \ / andyp@parallax.co.uk /_/ \_,_/_/ \_,_/_/_/\_,_//_\_\ boot /vmemacs