[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Best practices: living with .svn?

From: Brad Cox <bcox_at_virtualschool.edu>
Date: 2004-04-11 18:38:06 CEST

Thanks! That explained why my previous shot didn't work. But I don't
want to retrain my fingers to type rg instead of grep.

Setting $GREP_OPTIONS in ~/.bashrc like this did the trick
        export GREP_OPTIONS="--exclude="\*/.svn/\*"

At 11:41 AM -0400 4/11/04, Stephen Peters wrote:
>Brad Cox <bcox@virtualschool.edu> writes:
>
>> #1 on the wish list: what is the svn-friendly way to use grep -r foo
>> src to find all the foos in my working src directory, without
>> interference from hits in svn's administrative area (.svn). Hopefully
>> a global setting somewhere so I don't have to type special commands
>> each time. There are hopeful prospects in the man pages but I've not
>> yet hit on a working combination.
>
>I've made use of
> alias rg='grep --exclude=\*.svn\* -r'
>
>And then was able to type
> rg foo src
>
>--
>Stephen L. Peters portnoy@portnoy.org
> GPG fingerprint: A1BF 5A81 03E7 47CE 71E0 3BD4 8DA6 9268 5BB6 4BBE
> "I'm through accepting limits, 'cause someone says they're so. Some
> things I cannot change, but 'til I try I'll never know." -- Wicked

-- 
Brad J. Cox, PhD, 703 361 4751, http://virtualschool.edu
        http://virtualschool/ale Action Learning Environment
http://virtualschool.edu/mybank Digital Rights Management System
    http://virtualschool.edu/jco Java Cryptographic Objects (JCO)
   http://virtualschool.edu/jwaa Java Web Application Architecture (JWAA)
  http://virtualschool.edu/java+ Java Preprocessor (Java+)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Apr 11 18:39:46 2004

This is an archived mail posted to the Subversion Users mailing list.