Logging my quest into the NetBSD universe.

Thursday, August 4, 2011

NetBSD goes git

According to The NetBSD Blog somebody has set up an automatic synchronization between the NetBSD CVS repositories and a git repository hosted at github. What interests me the most is the git copy of the src repository which can be found at: https://github.com/jsonn/src. Why prefer this over CVS ? Simple, just clone the repository and you can use git locally to commit your local changes and you'll have version control/history/diffs for your local work in the NetBSD tree.

Now how do we set this up locally ?

edb@lapedb:~/netbsd/git$ git clone http://github.com/jsonn/src.git
Cloning into src...
remote: Counting objects: 2913258, done.
remote: Compressing objects: 100% (826840/826840), done.
remote: Total 2913258 (delta 2353085), reused 2609790 (delta 2049617)
Receiving objects: 100% (2913258/2913258), 837.73 MiB | 2.02 MiB/s, done.
Resolving deltas: 100% (2353085/2353085), done.
edb@lapedb:~/netbsd/git$ cd src/
edb@lapedb:~/netbsd/git/src$ ls
BUILDING  Makefile.inc  bin       common  crypto  distrib  etc       extsrc  gnu      lib      regress  sbin   sys    tools    usr.sbin
Makefile  UPDATING      build.sh  compat  dist    doc      external  games   include  libexec  rescue   share  tests  usr.bin  x11
edb@lapedb:~/netbsd/git/src$ git status
# On branch trunk
nothing to commit (working directory clean)
edb@lapedb:~/netbsd/git/src$ git log | head 
commit 67570f9afcde1a61861eb4f26091764e41faf7b5
Author: mrg <mrg>
Date:   Thu Aug 4 00:52:49 2011 +0000

    switch sparc64 to GCC 4.5.3.

commit 62473a1fb983afc22917dc08f6b6a5a6bd692d1e
Author: he <he>
Date:   Wed Aug 3 22:19:31 2011 +0000


And we're good to go ! We can now perform local changes, import changes through github, put our local changes on a branch etc.