This patch adds the year to the history command.  When 
a user does cvs history <blah> it only prints out month/day.
Modified the code to print out month/day/year.

Patch generated with cvs diff -c

Thanks!

donald

************BEGIN PATCH***************
? 1
cvs server: Diffing .
Index: ChangeLog
===================================================================
RCS file: /home2/cvsroot/ccvs/src/ChangeLog,v
retrieving revision 1.1882
diff -c -r1.1882 ChangeLog
*** ChangeLog   2000/04/19 16:59:00     1.1882
--- ChangeLog   2000/05/01 23:43:42
***************
*** 1,3 ****
--- 1,8 ----
+ 2000-05-01  Donald Sharp <[EMAIL PROTECTED]>
+ 
+       * history.c: Added code to print out year instead
+       of just date/month
+ 
  2000-04-19  Larry Jones  <[EMAIL PROTECTED]>
  
        * server.c (dirswitch): Set pending_error_text in addition to
Index: history.c
===================================================================
RCS file: /home2/cvsroot/ccvs/src/history.c,v
retrieving revision 1.51
diff -c -r1.51 history.c
*** history.c   2000/02/21 19:02:16     1.51
--- history.c   2000/05/01 23:43:42
***************
*** 1472,1480 ****
        else
            tm = localtime (&(lr->date));
  
!       (void) printf ("%c %02d/%02d %02d:%02d %s %-*s", ty, tm->tm_mon + 1,
!                 tm->tm_mday, tm->tm_hour, tm->tm_min, tz_name,
!                 user_len, lr->user);
  
        workdir = xmalloc (strlen (lr->dir) + strlen (lr->end) + 10);
        (void) sprintf (workdir, "%s%s", lr->dir, lr->end);
--- 1472,1487 ----
        else
            tm = localtime (&(lr->date));
  
!       ( void ) printf( "%c %02d/%02d/%04d %02d:%02d %s %-*s",
!                        ty,
!                        tm->tm_mon + 1,
!                        tm->tm_mday,
!                        tm->tm_year + 1900,
!                        tm->tm_hour,
!                        tm->tm_min,
!                        tz_name,
!                        user_len,
!                        lr->user );
  
        workdir = xmalloc (strlen (lr->dir) + strlen (lr->end) + 10);
        (void) sprintf (workdir, "%s%s", lr->dir, lr->end);
**********************END PATCH**********************

Reply via email to