Add these lines to your ~/.bash_profile
if you’re using the Bash shell:
alias ddiff="cvs diff -u -F^f -N > "
alias dhead="cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal checkout drupal"
alias dupdate="cvs update -dP"
Now you have three new commands at your disposal:
ddiff : Usage: ddiff patchfile.patch
, creates a patch file.
dhead : Usage: dhead
, checks out Drupal HEAD in the current directory.
dupdate : Usage: dupdate
, updates the current directory recursively.
Update on August 10, 2011
While cleaning up my ~/.bash_profile
file, I came across the following functions that I’ve used for many years and shared with several other Drupal developers. These are now obsolete, thanks to Drupal.org’s migration from CVS to git.