[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RCS->$CVSROOT/foo
From: |
bill pursell |
Subject: |
Re: RCS->$CVSROOT/foo |
Date: |
24 Oct 2005 15:10:52 -0700 |
User-agent: |
G2/0.2 |
The exact command that I'm using is:
command! -nargs=? RcsDiff vnew | set bt=nofile | exe 'r !co <args> -p
#' | 0d_3 | diffthis | wincmd p | diffthis
Basically, it uses the "co" command with a -p to put the desired file
on the standard output. The difficulty with using cvs to do something
similar is that I have to figure out which components of the path to
the current directory are contained in the path relative to $CVSROOT.
I'm sure I could parse the contents of CVS/Root to figure it out, but
it adds complexity that isn't really necessary.