Blame


1 c75df689 2019-07-14 stsp Game of Trees (Got) is a version control system which prioritizes ease
2 37486c75 2020-03-05 stsp of use and simplicity over flexibility (https://gameoftrees.org)
3 7cc94e29 2018-09-08 stsp
4 66164023 2019-08-09 stsp Got is still under development; it is being developed exclusively
5 66164023 2019-08-09 stsp on OpenBSD and its target audience are OpenBSD developers. Got is
6 66164023 2019-08-09 stsp ISC-licensed and was designed with pledge(2) and unveil(2) in mind.
7 dd2a8a69 2019-07-14 stsp
8 2e3b39bc 2023-04-14 stsp Got uses Git repositories to store versioned data. Git can be used
9 66164023 2019-08-09 stsp for any functionality which has not yet been implemented in Got.
10 66164023 2019-08-09 stsp It will always remain possible to work with both Got and Git on
11 66164023 2019-08-09 stsp the same repository.
12 66164023 2019-08-09 stsp
13 b73055eb 2023-06-21 stsp A Got release tarball will install files under /usr/local by default.
14 b73055eb 2023-06-21 stsp This default can be changed by passing PREFIX=/some/path to make.
15 b73055eb 2023-06-21 stsp
16 b73055eb 2023-06-21 stsp A build started in Got's Git repository will install files under ~/bin,
17 b73055eb 2023-06-21 stsp which may have to be added to $PATH and be created first:
18 b73055eb 2023-06-21 stsp
19 b73055eb 2023-06-21 stsp $ mkdir ~/bin
20 b73055eb 2023-06-21 stsp
21 13b2bc37 2022-10-23 stsp To compile the Got client tool suite on OpenBSD, run:
22 7cc94e29 2018-09-08 stsp
23 7cc94e29 2018-09-08 stsp $ make obj
24 7cc94e29 2018-09-08 stsp $ make
25 7cc94e29 2018-09-08 stsp $ make install
26 7cc94e29 2018-09-08 stsp
27 53ccebc2 2019-07-30 stsp This will install the following commands:
28 7cc94e29 2018-09-08 stsp
29 53ccebc2 2019-07-30 stsp got, the command line interface
30 53ccebc2 2019-07-30 stsp tog, an ncurses-based interactive Git repository browser
31 53ccebc2 2019-07-30 stsp several helper programs from the libexec directory
32 53ccebc2 2019-07-30 stsp man pages (only installed if building sources from a Got release tarball)
33 7cc94e29 2018-09-08 stsp
34 0e673013 2019-01-02 stsp Tests will pass only after 'make install' because they rely on installed
35 ef3dc9f3 2023-04-14 stsp binaries in $PATH. Any tests written as shell scripts also depend on git(1).
36 34c3415f 2021-09-21 stsp Tests which use the got clone, fetch, and send commands will fail if
37 34c3415f 2021-09-21 stsp 'ssh 127.0.0.1' does not succeed non-interactively.
38 7cc94e29 2018-09-08 stsp
39 c1556ace 2024-04-17 stsp Tests for HTTP protocol support rely on the HTTP::Daemon Perl module.
40 c1556ace 2024-04-17 stsp
41 c1556ace 2024-04-17 stsp $ doas pkg_add git p5-http-daemon
42 7cc94e29 2018-09-08 stsp $ make regress
43 7cc94e29 2018-09-08 stsp
44 b32c4525 2020-01-05 stsp To test with packed repositories, run:
45 b32c4525 2020-01-05 stsp
46 b32c4525 2020-01-05 stsp $ make regress GOT_TEST_PACK=1
47 b32c4525 2020-01-05 stsp
48 c2f61165 2023-02-17 op To test with packed repositories using the ref-delta representation for
49 c2f61165 2023-02-17 op deltified objects, run:
50 c2f61165 2023-02-17 op
51 c2f61165 2023-02-17 op $ make regress GOT_TEST_PACK=ref-delta
52 c2f61165 2023-02-17 op
53 11f4fa81 2020-10-01 stsp Because got unveils the /tmp directory by default using the /tmp directory
54 11f4fa81 2020-10-01 stsp for test data can hide bugs. However, /tmp remains the default because
55 11f4fa81 2020-10-01 stsp there is no better alternative that works out of the box. In order to
56 11f4fa81 2020-10-01 stsp store test data in a directory other than /tmp, such as ~/got-test, run:
57 11f4fa81 2020-10-01 stsp
58 11f4fa81 2020-10-01 stsp $ mkdir ~/got-test
59 11f4fa81 2020-10-01 stsp $ make regress GOT_TEST_ROOT=~/got-test
60 11f4fa81 2020-10-01 stsp
61 37ad0a50 2023-04-20 naddy The tog automated test suite is also run with 'make regress'.
62 37ad0a50 2023-04-20 naddy Like Got, however, individual tests or the entire suite can be run:
63 af21bb7e 2023-04-12 mark
64 af21bb7e 2023-04-12 mark $ cd regress/tog
65 af21bb7e 2023-04-12 mark $ make # run all tests
66 af21bb7e 2023-04-12 mark $ ./log.sh # run log view tests
67 af21bb7e 2023-04-12 mark
68 53ccebc2 2019-07-30 stsp Man page files in the Got source tree can be viewed with 'man -l':
69 7cc94e29 2018-09-08 stsp
70 107f9ed5 2019-07-27 klemens $ man -l got/got.1
71 107f9ed5 2019-07-27 klemens $ man -l got/git-repository.5
72 107f9ed5 2019-07-27 klemens $ man -l got/got-worktree.5
73 107f9ed5 2019-07-27 klemens $ man -l tog/tog.1
74 42620da7 2019-07-14 stsp
75 e1fa9f20 2019-07-14 stsp EXAMPLES in got.1 contains a quick-start guide for OpenBSD developers.
76 42620da7 2019-07-14 stsp
77 738b3756 2020-01-28 stsp
78 13b2bc37 2022-10-23 stsp To compile the Got server tool suite on OpenBSD, run:
79 13b2bc37 2022-10-23 stsp
80 13b2bc37 2022-10-23 stsp $ make obj
81 13b2bc37 2022-10-23 stsp $ make server
82 13b2bc37 2022-10-23 stsp $ make server-install
83 13b2bc37 2022-10-23 stsp
84 13b2bc37 2022-10-23 stsp This will install the following commands:
85 13b2bc37 2022-10-23 stsp
86 13b2bc37 2022-10-23 stsp gotd, the repository server program
87 f1752522 2022-10-29 stsp gotctl, the server control utility
88 13b2bc37 2022-10-23 stsp gotsh, the login shell for users accessing the server via the network
89 b09c1279 2023-03-28 stsp gitwrapper, like mailwrapper(8) but for git-upload-pack and git-receive-pack
90 13b2bc37 2022-10-23 stsp
91 13b2bc37 2022-10-23 stsp See the following manual page files for information about server setup:
92 13b2bc37 2022-10-23 stsp
93 13b2bc37 2022-10-23 stsp $ man -l gotd/gotd.8
94 13b2bc37 2022-10-23 stsp $ man -l gotd/gotd.conf.5
95 f1752522 2022-10-29 stsp $ man -l gotctl/gotctl.8
96 13b2bc37 2022-10-23 stsp $ man -l gotsh/gotsh.1
97 b09c1279 2023-03-28 stsp $ man -l gitwrapper/gitwrapper.1
98 13b2bc37 2022-10-23 stsp
99 6ae16afd 2022-10-31 stsp See regress/gotd/README for information about running the server test suite.
100 13b2bc37 2022-10-23 stsp
101 6ae16afd 2022-10-31 stsp
102 0d8212e7 2022-12-30 stsp Game of Trees Web Daemon (gotwebd) is a FastCGI program which displays
103 0d8212e7 2022-12-30 stsp repository data and is designed to work with httpd(8).
104 e1fa9f20 2019-07-14 stsp
105 06991378 2022-12-30 tracey To compile gotwebd on OpenBSD, run:
106 270ebbdc 2020-01-16 stsp
107 06991378 2022-12-30 tracey $ make webd
108 06991378 2022-12-30 tracey # make webd-install
109 270ebbdc 2020-01-16 stsp
110 270ebbdc 2020-01-16 stsp This will create the following files:
111 06991378 2022-12-30 tracey the daemon program /usr/local/sbin/gotwebd
112 06991378 2022-12-30 tracey css and image files in /var/www/htdocs/gotwebd
113 06991378 2022-12-30 tracey the gotwebd init script in /etc/rc.d
114 270ebbdc 2020-01-16 stsp man pages (only installed if building sources from a Got release tarball)
115 270ebbdc 2020-01-16 stsp
116 738b3756 2020-01-28 stsp Documentation is available in manual pages:
117 270ebbdc 2020-01-16 stsp
118 06991378 2022-12-30 tracey $ man -l gotwebd/gotwebd.8
119 06991378 2022-12-30 tracey $ man -l gotwebd/gotwebd.conf.5
120 270ebbdc 2020-01-16 stsp
121 270ebbdc 2020-01-16 stsp
122 296304f3 2021-06-18 stsp Got can be built with profiling enabled to debug performance issues.
123 296304f3 2021-06-18 stsp Note that profiled builds cannot make use of pledge(2).
124 296304f3 2021-06-18 stsp Profiling should only be enabled for one program at a time. Otherwise,
125 296304f3 2021-06-18 stsp multiple programs will attempt to write to the 'gmon.out' file in the
126 296304f3 2021-06-18 stsp current working directory.
127 296304f3 2021-06-18 stsp
128 296304f3 2021-06-18 stsp For example, to compile got-read-pack with profiling enabled:
129 296304f3 2021-06-18 stsp
130 296304f3 2021-06-18 stsp $ cd libexec/got-read-pack
131 296304f3 2021-06-18 stsp $ make clean
132 296304f3 2021-06-18 stsp $ make PROFILE=1
133 296304f3 2021-06-18 stsp $ make install
134 296304f3 2021-06-18 stsp
135 296304f3 2021-06-18 stsp Running any Got command which ends up using got-read-pack should now
136 296304f3 2021-06-18 stsp produce the file 'gmon.out' in the current working directory.
137 296304f3 2021-06-18 stsp The gprof2dot program can be used to generate a profile graph:
138 296304f3 2021-06-18 stsp
139 296304f3 2021-06-18 stsp $ doas pkg_add gprof2dot graphviz
140 296304f3 2021-06-18 stsp $ gprof ~/bin/got-read-pack gmon.out | gprof2dot | dot -T png > profile.png
141 296304f3 2021-06-18 stsp
142 296304f3 2021-06-18 stsp
143 42620da7 2019-07-14 stsp Guidelines for reporting problems:
144 42620da7 2019-07-14 stsp
145 42620da7 2019-07-14 stsp All problem/bug reports should include a reproduction recipe in form of a
146 42620da7 2019-07-14 stsp shell script which starts out with an empty repository and runs a series of
147 8deda1af 2019-07-14 stsp Got and/or Git commands to trigger the problem, be it a crash or some other
148 42620da7 2019-07-14 stsp undesirable behaviour.
149 42620da7 2019-07-14 stsp
150 42620da7 2019-07-14 stsp The regress/cmdline directory contains plenty of example scripts.
151 42620da7 2019-07-14 stsp An ideal reproduction recipe is written as an xfail ("expected failure")
152 42620da7 2019-07-14 stsp regression test. For a real-world example of an xfail test, see commits
153 42620da7 2019-07-14 stsp 4866d0842a2b34812818685aaa31d3e0a966412d and
154 8deda1af 2019-07-14 stsp 2b496619daecc1f25b1bc0c53e01685030dc2c74 in Got's history.
155 42620da7 2019-07-14 stsp
156 42620da7 2019-07-14 stsp Please take this request very seriously; Ask for help with writing your
157 42620da7 2019-07-14 stsp regression test before asking for your problem to be fixed. Time invested
158 42620da7 2019-07-14 stsp in writing a regression test saves time wasted on back-and-forth discussion
159 42620da7 2019-07-14 stsp about how the problem can be reproduced. A regression test will need to be
160 42620da7 2019-07-14 stsp written in any case to verify a fix and prevent the problem from resurfacing.
161 42620da7 2019-07-14 stsp
162 9532f6b4 2019-07-14 stsp It is also possible to write test cases in C. Various examples of this
163 7d405766 2019-07-30 stsp exist in the regress/ directory. Most such tests are unit tests; it is
164 7d405766 2019-07-30 stsp unlikely that a problem found during regular usage will require a test
165 7d405766 2019-07-30 stsp to be written in C.
166 9532f6b4 2019-07-14 stsp
167 56f95bee 2019-07-14 stsp Please always try to find a way to trigger your problem via the command line
168 56f95bee 2019-07-14 stsp interface before reporting a problem without a written test case included.
169 56f95bee 2019-07-14 stsp If writing an automated test really turns out to be impossible, please
170 56f95bee 2019-07-14 stsp explain in very clear terms how the problem can be reproduced.
171 42620da7 2019-07-14 stsp
172 3ba86cef 2019-09-25 stsp Mail problem reports to: gameoftrees@openbsd.org
173 42620da7 2019-07-14 stsp
174 42620da7 2019-07-14 stsp
175 42620da7 2019-07-14 stsp Guidelines for submitting patches:
176 42620da7 2019-07-14 stsp
177 3ba86cef 2019-09-25 stsp Mail patches to: gameoftrees@openbsd.org
178 52be27fc 2019-07-30 stsp Pull requests via any Git hosting sites will likely be overlooked.
179 52be27fc 2019-07-30 stsp Please keep the intended target audience in mind when contributing to Got.
180 3ba86cef 2019-09-25 stsp
181 3ba86cef 2019-09-25 stsp
182 3ba86cef 2019-09-25 stsp Subscribing to the gameoftrees@openbsd.org mailing list:
183 3ba86cef 2019-09-25 stsp
184 3ba86cef 2019-09-25 stsp The mailing list is used for patch reviews, bug reports, and user questions.
185 3ba86cef 2019-09-25 stsp To subscribe, send mail to majordomo@openbsd.org with a message body of:
186 3ba86cef 2019-09-25 stsp subscribe gameoftrees
187 3ba86cef 2019-09-25 stsp
188 3ba86cef 2019-09-25 stsp See https://www.openbsd.org/mail.html for more information.