On Fri, Jan 09, 2004 at 16:34:36, Cameron McCormack spake thusly: > When I "cvs commit" I often forget exactly what I've changed in my > files. Is there a way to get cvs to display in the commit message file, > underneath the "modified files/added files/deleted files" comment, the > diffs I am about to commit?
I use a cvscommit alias/function for csh/zsh, then set the CVSEDITOR environment variable to open the cvstemp.diff file in addition to the log message (setting for vim shown): csh: alias cvscommit 'cvs diff \!* > cvstemp.diff || cvs commit \!*; rm cvstemp.diff' setenv CVSEDITOR 'vim -X -o cvstemp.diff' zsh (sh too?): cvscommit () { cvs diff $* > cvstemp.diff || cvs commit $* rm -f cvstemp.diff } CVSEDITOR='vim -X -o cvstemp.diff' export CVSEDITOR When I do cvscommit [optional options/files/dirs], this gives me a vim editor with two vim windows - one with the diffs, one with the log message to edit. The -X for vim tells it not connect to the X server - a speedup for working remotely. Scott _______________________________________________ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs