Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Dec 1999 09:57:12 +0800
From:      Peter Wemm <peter@netplex.com.au>
To:        "David E. O'Brien" <obrien@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/gnu/usr.bin/cvs/cvs Makefile src/contrib/cvs/man cvs.1 src/contrib/cvs/src prepend_args.c prepend_args.h main.c 
Message-ID:  <19991204015712.8AEC71CC8@overcee.netplex.com.au>
In-Reply-To: Message from "David E. O'Brien" <obrien@FreeBSD.org>  of "Fri, 03 Dec 1999 17:23:27 PST." <199912040123.RAA29793@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
"David E. O'Brien" wrote:
> obrien      1999/12/03 17:23:27 PST
> 
>   Modified files:
>     gnu/usr.bin/cvs/cvs  Makefile 
>     contrib/cvs/man      cvs.1 
>     contrib/cvs/src      main.c 
>   Added files:
>     contrib/cvs/src      prepend_args.c prepend_args.h 
>   Log:
>   Support the environtmental var "CVS_OPTIONS".  Which can hold a set of
>   default options for cvs.  These options are interpreted first and can be
>   overwritten by explicit command line parameters.
>   
>   Obtained from:	GNU Grep 2.3
>   
>   Revision  Changes    Path
>   1.29      +3 -2      src/gnu/usr.bin/cvs/cvs/Makefile
>   1.14      +18 -2     src/contrib/cvs/man/cvs.1
>   1.17      +5 -0      src/contrib/cvs/src/main.c

Umm, this is what the .cvsrc file is for, and is MUCH more flexible..


peter@overcee[9:49am]~src/bin/ls-321> cvs up
cvs server: Updating .
peter@overcee[9:50am]~src/bin/ls-322> echo "cvs -q" >> ~/.cvsrc
peter@overcee[9:50am]~src/bin/ls-323> cvs up
peter@overcee[9:50am]~src/bin/ls-324> echo foo >> ls.c 
peter@overcee[9:50am]~src/bin/ls-325> cvs diff ls.c
Index: ls.c
===================================================================
RCS file: /home/ncvs/src/bin/ls/ls.c,v
retrieving revision 1.30
diff -r1.30 ls.c
656a657
> foo
peter@overcee[9:50am]~src/bin/ls-326> echo "diff -u2" >> ~/.cvsrc 
peter@overcee[9:50am]~src/bin/ls-327> cvs diff ls.c
Index: ls.c
===================================================================
RCS file: /home/ncvs/src/bin/ls/ls.c,v
retrieving revision 1.30
diff -u -2 -r1.30 ls.c
--- ls.c        1999/08/27 23:14:31     1.30
+++ ls.c        1999/12/04 01:50:48
@@ -655,2 +655,3 @@
        return reg;
 }
+foo

ie: .cvsrc works for both global options and options for specific cvs
sub-commands.

I think this is needless divergence from the main cvs source and should be
backed out, especially since it duplicates existing functionality and reaches
into the source of another package ("../diff").

Cheers,
-Peter




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991204015712.8AEC71CC8>