From owner-cvs-all Fri Dec 3 17:57:46 1999 Delivered-To: cvs-all@freebsd.org Received: from overcee.netplex.com.au (overcee.netplex.com.au [202.12.86.7]) by hub.freebsd.org (Postfix) with ESMTP id 72B18152FC; Fri, 3 Dec 1999 17:57:39 -0800 (PST) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 8AEC71CC8; Sat, 4 Dec 1999 09:57:12 +0800 (WST) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.1.1 10/15/1999 To: "David E. O'Brien" 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 In-Reply-To: Message from "David E. O'Brien" of "Fri, 03 Dec 1999 17:23:27 PST." <199912040123.RAA29793@freefall.freebsd.org> Date: Sat, 04 Dec 1999 09:57:12 +0800 From: Peter Wemm Message-Id: <19991204015712.8AEC71CC8@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk "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