Game of Trees https://gameoftrees.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Stefan Sperling b784a72bc5 remove a redundant .Pp in got.1 (found by mandoc -T lint) 1 week ago
got remove a redundant .Pp in got.1 (found by mandoc -T lint) 1 week ago
gotweb mention 'got fetch' in gotweb.8 2 weeks ago
include fix got_ref_change_symref(); it changed the ref's name instead of its target 2 weeks ago
lib fix got_ref_change_symref(); it changed the ref's name instead of its target 2 weeks ago
libexec make got-index-pack check the expected pack checksum passed from main process 2 weeks ago
regress make 'got fetch' restore our copy of the remote HEAD if the copy was deleted 1 week ago
tog show 'searching...' during 'tog log' search even if no new commits are loaded 1 week ago
util add a script which decompresses a git object 2 years ago
.gitignore blame css 2 months ago
CHANGES changes for 0.32 1 week ago
LICENCE add copyright year for files already touched in 2020 3 months ago
Makefile traverse into gotweb during 'make release' 1 month ago
Makefile.inc disable compiler warnings in release builds because -Werror is bad for ports 1 month ago
README add tests for 'got clone' and 'got fetch'; requires 'ssh 127.0.0.1' to work 2 weeks ago
TODO don not open log message editor if there are no changes during 'histedit -c' 2 months ago
got-dist.txt sync dist file list 2 weeks ago
got-version.mk bump version number 1 week ago

README

Game of Trees (Got) is a version control system which prioritizes ease
of use and simplicity over flexibility (https://gameoftrees.org)

Got is still under development; it is being developed exclusively
on OpenBSD and its target audience are OpenBSD developers. Got is
ISC-licensed and was designed with pledge(2) and unveil(2) in mind.

Got uses Git repositories to store versioned data. At present, Got
supports local version control operations only. Git can be used
for any functionality which has not yet been implemented in Got.
It will always remain possible to work with both Got and Git on
the same repository.

To compile the Got tool suite on OpenBSD, run:

$ make obj
$ make
$ make install

This will install the following commands:

got, the command line interface
tog, an ncurses-based interactive Git repository browser
several helper programs from the libexec directory
man pages (only installed if building sources from a Got release tarball)

A Got release tarball will install files under /usr/local by default.
A build started in Got's Git repository will install files under ~/bin.

Tests will pass only after 'make install' because they rely on installed
binaries in $PATH. Tests in the cmdline directory currently depend on git(1).
Tests in 'clone.sh' and 'fetch.sh' will fail if 'ssh 127.0.0.1' does not
succeed non-interactively.

$ doas pkg_add git
$ make regress

To test with packed repositories, run:

$ make regress GOT_TEST_PACK=1

Man page files in the Got source tree can be viewed with 'man -l':

$ man -l got/got.1
$ man -l got/git-repository.5
$ man -l got/got-worktree.5
$ man -l tog/tog.1

EXAMPLES in got.1 contains a quick-start guide for OpenBSD developers.


Game of Trees Web (Gotweb) is a CGI program which displays repository data
and is designed to work with httpd(8) and slowcgi(8).

To compile gotweb on OpenBSD, run:

# pkg_add kcgi
$ make web
# make web-install

This will create the following files:
the CGI program /var/www/cgi-bin/gotweb/gotweb
helper programs from the libexec directory in /var/www/cgi-bin/gotweb/libexec
several template files in /var/www/cgi-bin/gw_tmpl/
html, css, and image files in /var/www/htdocs/gotweb/
the directory /var/www/got/tmp/
man pages (only installed if building sources from a Got release tarball)

Documentation is available in manual pages:

$ man -l gotweb/gotweb.8
$ man -l gotweb/gotweb.conf.5


Guidelines for reporting problems:

All problem/bug reports should include a reproduction recipe in form of a
shell script which starts out with an empty repository and runs a series of
Got and/or Git commands to trigger the problem, be it a crash or some other
undesirable behaviour.

The regress/cmdline directory contains plenty of example scripts.
An ideal reproduction recipe is written as an xfail ("expected failure")
regression test. For a real-world example of an xfail test, see commits
4866d0842a2b34812818685aaa31d3e0a966412d and
2b496619daecc1f25b1bc0c53e01685030dc2c74 in Got's history.

Please take this request very seriously; Ask for help with writing your
regression test before asking for your problem to be fixed. Time invested
in writing a regression test saves time wasted on back-and-forth discussion
about how the problem can be reproduced. A regression test will need to be
written in any case to verify a fix and prevent the problem from resurfacing.

It is also possible to write test cases in C. Various examples of this
exist in the regress/ directory. Most such tests are unit tests; it is
unlikely that a problem found during regular usage will require a test
to be written in C.

Some areas of code, such as the tog UI, are not covered by automated tests.
Please always try to find a way to trigger your problem via the command line
interface before reporting a problem without a written test case included.
If writing an automated test really turns out to be impossible, please
explain in very clear terms how the problem can be reproduced.

Mail problem reports to: gameoftrees@openbsd.org


Guidelines for submitting patches:

Mail patches to: gameoftrees@openbsd.org
Pull requests via any Git hosting sites will likely be overlooked.
Please keep the intended target audience in mind when contributing to Got.


Subscribing to the gameoftrees@openbsd.org mailing list:

The mailing list is used for patch reviews, bug reports, and user questions.
To subscribe, send mail to majordomo@openbsd.org with a message body of:
subscribe gameoftrees

See https://www.openbsd.org/mail.html for more information.