*** a/doc/src/sgml/cvs.sgml --- b/doc/src/sgml/cvs.sgml *************** *** 23,45 **** 1999-05-20 ! The <productname>CVS</productname> Repository The PostgreSQL source code is stored and managed using the ! CVS version control system. - At least three methods, anonymous CVS, rsync, - and CVSup, - are available to pull the CVS code tree from the - PostgreSQL server to your local machine. Our Wiki, , ! has additional details on working with CVS. Getting The Source Via Anonymous <productname>CVS</productname> --- 23,120 ---- 1999-05-20 ! The Source Repository The PostgreSQL source code is stored and managed using the ! CVS version control system. An official mirror using ! GIT is also available, for those who wish to use a ! distributed version control system. This mirror is automatically ! updated whenever the main repository changes, so it always contains the latest ! versions of all branches. ! ! ! ! Using git is the most flexible way to work with the source, and it ! allows you to work offline without having constant access to the project servers. ! CVSup and rsync based cvs also ! lets you work offline, but lacks many of the other advantages of ! git. Our Wiki, and ! , ! has additional details on working with CVS and GIT. + + Getting The Source Via <productname>GIT</> + + + With git you will make a copy of the entire code repository + to your local machine, so you will have access to all history and branches + offline. This is the fastest and most flexible way to develop or test + patches. + + + + GIT + + + + You will need an installed version of git, which you can get + from . Many systems also have a recent + version of git installed by default, or available in their + package repository system. + + + + + + To being using the git repository, make a clone of the official mirror: + + + git clone git://git.postgresql.org/git/postgresql.git + + + This will copy the full repository to your local machine, so it may take + a while to complete, especially if you have a slow internet connection. + + + + The git mirror can also be reached via the http protocol in case for example + a firewall is blocking access to the git protocol. Just replace the URL + like: + + + git clone http://git.postgresql.org/git/postgresql.git + + + The http protocol is less efficient than the git protocol, so it will be + slightly slower to use. + + + + + + Whenever you want to get the latest updates in the system, cd + into the repository, and run: + + + git fetch + + + + + + git can do a lot more things than just fetch the source. For + more information, consult the man pages for the product, or the website at + . + + + Getting The Source Via Anonymous <productname>CVS</productname> *************** *** 92,113 **** cvs -z3 -d :pserver:anoncvs@anoncvs.postgresql.org:/projects/cvsroot co -P pgsql This installs the PostgreSQL sources into a subdirectory pgsql of the directory you are currently in. - - - - If you have a fast link to the Internet, you might not need - , which instructs - CVS to use gzip compression for transferred data. But - on a modem-speed link, it's a very substantial win. - - This initial checkout is a little slower than simply downloading ! a tar.gz file; expect it to take 40 minutes or so if you ! have a 28.8K modem. The advantage of ! CVS doesn't show up until you want to update the file set later on. --- 167,177 ---- This installs the PostgreSQL sources into a subdirectory pgsql of the directory you are currently in. This initial checkout is a little slower than simply downloading ! a tar.gz file. The advantage of CVS doesn't show up until you want to update the file set later on. *************** *** 163,169 **** cvs update CVS repository. To work around that deficiency, use cvsutils, which is packaged in several operating systems, and is available in source form at . --- 227,234 ---- CVS repository. To work around that deficiency, use cvsutils, which is packaged in several operating systems, and is available in source form at , or use git ! or another system designed to work offline. *************** *** 301,307 **** cvs commit An alternative to using anonymous CVS for retrieving the PostgreSQL source tree is rsync, an incremental file transfer tool. ! A major advantage to using rsync is that it can reliably replicate the entire CVS repository on your local system, allowing fast local access to cvs operations such as and . --- 366,373 ---- An alternative to using anonymous CVS for retrieving the PostgreSQL source tree is rsync, an incremental file transfer tool. ! A major advantage to using rsync instead of ! plain cvs is that it can reliably replicate the entire CVS repository on your local system, allowing fast local access to cvs operations such as and .