<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/bin/cash/libedit/readline, branch master</title>
<subtitle>dontfiles
</subtitle>
<id>https://git.causal.agency/src/atom?h=master</id>
<link rel='self' href='https://git.causal.agency/src/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.causal.agency/src/'/>
<updated>2019-04-19T00:30:54+00:00</updated>
<entry>
<title>Rename cash to catsh</title>
<updated>2019-04-19T00:30:54+00:00</updated>
<author>
<name>June McEnroe</name>
<email>june@causal.agency</email>
</author>
<published>2019-04-19T00:30:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.causal.agency/src/commit/?id=fb20e8c32eddb5ea4aedd44cfc0c49402ff9184d'/>
<id>urn:sha1:fb20e8c32eddb5ea4aedd44cfc0c49402ff9184d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Import /usr/src/lib/libedit from NetBSD 8.0</title>
<updated>2019-01-11T22:38:59+00:00</updated>
<author>
<name>June McEnroe</name>
<email>june@causal.agency</email>
</author>
<published>2019-01-11T22:38:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.causal.agency/src/commit/?id=5e38f3a7eada1c037038dc7e0af8611265698f5c'/>
<id>urn:sha1:5e38f3a7eada1c037038dc7e0af8611265698f5c</id>
<content type='text'>
</content>
</entry>
</feed>
>
<a href='/cgit-pink/about/'>about</a> <a href='/cgit-pink/'>summary</a> <a href='/cgit-pink/refs/?id=9c5229ea394808f90433ee84439503bee124e1de'>refs</a> <a class='active' href='/cgit-pink/log/ui-repolist.c?showmsg=1&amp;follow=1'>log</a> <a href='/cgit-pink/tree/ui-repolist.c?id=9c5229ea394808f90433ee84439503bee124e1de'>tree</a> <a href='/cgit-pink/commit/ui-repolist.c?id=9c5229ea394808f90433ee84439503bee124e1de&amp;follow=1'>commit</a> <a href='/cgit-pink/diff/ui-repolist.c?id=9c5229ea394808f90433ee84439503bee124e1de&amp;follow=1'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit-pink/log/ui-repolist.c'>
<input type='hidden' name='id' value='9c5229ea394808f90433ee84439503bee124e1de'/><input type='hidden' name='showmsg' value='1'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit-pink/log/?id=9c5229ea394808f90433ee84439503bee124e1de&amp;showmsg=1&amp;follow=1'>root</a>/<a href='/cgit-pink/log/ui-repolist.c?id=9c5229ea394808f90433ee84439503bee124e1de&amp;showmsg=1&amp;follow=1'>ui-repolist.c</a> (<a href='/cgit-pink/log/ui-repolist.c?id=9c5229ea394808f90433ee84439503bee124e1de&amp;showmsg=1'>unfollow</a>)</div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/cgit-pink/log/ui-repolist.c?id=9c5229ea394808f90433ee84439503bee124e1de&amp;follow=1'>Collapse</a>)</th><th class='left'>Author</th></tr>
<tr class='logheader'><td><span title='2006-12-16 14:58:20 +0100'>2006-12-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-summary.c?id=aaa24bdd30303128bded8487cd9f63b54c3b8dcd&amp;follow=1'>Add cgit_free_commitinfo() and use where needed</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-16 14:46:05 +0100'>2006-12-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-commit.c?id=fa82b03e05366e3c6ca1b74c8c83d6e00e0ef1e6&amp;follow=1'>Simplify ui-commit.c</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Replace the call to lookup_commit() with a call to lookup_commit_reference,
since it handles reading and parsing of the commit object internally.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-16 14:28:26 +0100'>2006-12-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-commit.c?id=8960d267ed2029ad6695488614c015d506de465c&amp;follow=1'>Show emails and timestamps in ui-commit.c</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Use the extra info found in commitinfo struct when generating commit
view.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-16 14:25:41 +0100'>2006-12-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/parsing.c?id=77078ba716ccdfdc954741355dd6a17632db961b&amp;follow=1'>Teach commit parser about author/committer email + timestamp</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
We want all four of these when showing a commit, so save them in the
commitinfo struct.

Btw: There's probably no good reason to save committer timestamp since
it's already available in commit-&gt;date. But it doesn't hurt us either,
and it makes the parser look more complete, so we just do it.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-16 13:55:58 +0100'>2006-12-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgit.c?id=7c849d94ec1cfecdec5a88d49f5af5c98f96ebca&amp;follow=1'>Allow relative paths for cgit_cache_root</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Make sure we chdir(2) back to the original getcwd(2) when a page
has been generated. Also, if the cgit_cache_root do not exist,
try to create it.

This is a feature intended to ease testing/debugging.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-16 13:43:01 +0100'>2006-12-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/shared.c?id=61245ad18545ab09b22e9fcce5e49d5d36bf8176&amp;follow=1'>Add cache-root option to /cgit/rc</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Somehow, this option was forgotten when parsing the configfile.

Add it.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-16 13:38:45 +0100'>2006-12-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/shared.c?id=521dc7a4bf4af6115ffc3a94d447689bbaa22272&amp;follow=1'>Add argument parsing + switch for uncached operation</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
This adds support for the following options to cgit:
  --root=&lt;path&gt;
  --cache=&lt;path&gt;
  --nocache
  --query=&lt;querystring&gt;
  --repo=&lt;reponame&gt;
  --page=&lt;pagename&gt;
  --head=&lt;branchname&gt;
  --sha1=&lt;sha1&gt;
  --ofs=&lt;number&gt;

On startup, /etc/cgitrc is parsed, followed by argument parsing and
finally querystring parsing.

If --nocache is specified (or set in /etc/gitrc), caching is disabled and
cgit instead generates pages to stdout.

The combined effect of these two changes makes testing/debugging a lot
less painfull.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-16 01:14:01 +0100'>2006-12-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/shared.c?id=a1a79998f22fe8279be51fc1d31bfcf14031c109&amp;follow=1'>Add head comment to shared.c</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-16 01:11:55 +0100'>2006-12-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-commit.c?id=6c14f5e457e17da9205588c273d7cb9f92a23b9f&amp;follow=1'>Add head comment to ui-commit.c</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-16 01:05:58 +0100'>2006-12-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgit.css?id=f516218d0d0a6ddbd04e8ade722cc67eee4cf001&amp;follow=1'>gitweb ripoff: set tr:hover to highligt current row</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-16 00:49:37 +0100'>2006-12-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-shared.c?id=0de2055b75735986ff04aed8f534ecf06248e5e1&amp;follow=1'>Make repo header a link to summary page</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-16 00:33:28 +0100'>2006-12-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-summary.c?id=148fb9622c6a96021e572d1a372e38896506031f&amp;follow=1'>Move cgit_print_date into ui-shared, reuse in ui-summary</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-16 00:19:56 +0100'>2006-12-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-view.c?id=9a8f88658d51aeb86a79ac1121de13562ad2601f&amp;follow=1'>Add ui-commit.c + misc ui cleanups</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-15 18:17:36 +0100'>2006-12-15</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-log.c?id=2101e26fd68f816e77de62b93df4c32fd1110d0c&amp;follow=1'>Add a common commit parser</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Make a better commit parser, replacing the ugly one in ui-log.c

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-14 00:40:34 +0100'>2006-12-14</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-log.c?id=420712ac2531f65a2b94d5ec6d8e03de6942331e&amp;follow=1'>Add simple pager to log page</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-13 14:39:41 +0100'>2006-12-13</span></td><td class='logsubject'><a href='/cgit-pink/commit/Makefile?id=c45b8178d0e042a668395541a28d59f907da150b&amp;follow=1'>Add separate makefile-rule to clear current cache</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-13 02:06:29 +0100'>2006-12-13</span></td><td class='logsubject'><a href='/cgit-pink/commit/README?id=dcef257d4fdbb2e0ff645bf0524cfca652e65ff0&amp;follow=1'>Remove implementation details from README</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Let README describe the "bigger picture" instead.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-13 00:36:22 +0100'>2006-12-13</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-view.c?id=9c2e863ec22ce552f1a2e06c6c9e3d77368b0e87&amp;follow=1'>Small layout adjustments to summary and blob view</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-13 00:13:27 +0100'>2006-12-13</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-view.c?id=06fe0c2f47eaf467db8ab1443e61dfa1c280f30a&amp;follow=1'>Add display of tree content w/ui-tree.c</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-12 10:16:41 +0100'>2006-12-12</span></td><td class='logsubject'><a href='/cgit-pink/commit/cache.c?id=58d04f6523b0029281d65f841859fa42d0c744ff&amp;follow=1'>cache_lock: do xstrdup/free on lockfile</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Since fmt() uses 8 alternating static buffers, and cache_lock might call
cache_create_dirs() multiple times, which in turn might call fmt() twice,
after four iterations lockfile would be overwritten by a cachedirectory
path.

In worst case, this could cause the cachedirectory to be unlinked and replaced
by a cachefile.

Fix: use xstrdup() on the result from fmt() before assigning to lockfile, and
call free(lockfile) before exit.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-11 22:53:50 +0100'>2006-12-11</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgit.h?id=fbaf1171b4e343929dd43ecac7cd9d1c692b84ec&amp;follow=1'>Don't truncate valid cachefiles</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
An embarrassing thinko in cgit_check_cache() would truncate valid cachefiles
in the following situation:
  1) process A notices a missing/expired cachefile
  2) process B gets scheduled, locks, fills and unlocks the cachefile
  3) process A gets scheduled, locks the cachefile, notices that the cachefile
     now exist/is not expired anymore, and continues to overwrite it with an
     empty lockfile.

Thanks to Linus for noticing (again).

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-11 17:25:51 +0100'>2006-12-11</span></td><td class='logsubject'><a href='/cgit-pink/commit/shared.c?id=44923f8953c66dc9b852316b655ab3b5aec9478e&amp;follow=1'>Move global variables + callback functions into shared.c</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-11 17:12:26 +0100'>2006-12-11</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-view.c?id=df63119302910587e280d91dce67f6537a671f74&amp;follow=1'>Move functions for generic object output into ui-view.c</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-11 17:04:19 +0100'>2006-12-11</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-summary.c?id=d14c5f6d3ac827e7b46831c4151638ab4b638ae1&amp;follow=1'>Move log-functions into ui-log.c</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-11 16:55:33 +0100'>2006-12-11</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-summary.c?id=1418034e642fee67c981b31e4c3eb6e8ae14e303&amp;follow=1'>Move repo summary functions into ui-summary.c</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-11 16:49:18 +0100'>2006-12-11</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-shared.c?id=74620f12e4f7e91cb0a0b4ca731e07272d1b65f6&amp;follow=1'>Move functions for repolist output into ui-repolist.c</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-11 16:38:30 +0100'>2006-12-11</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-shared.c?id=5a106eb09b9b5e189b96cc736046a92b054f6c7f&amp;follow=1'>Move common output-functions into ui-shared.c</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
While at it, replace the cgit_[lib_]error constants with a proper function

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-11 16:11:40 +0100'>2006-12-11</span></td><td class='logsubject'><a href='/cgit-pink/commit/parsing.c?id=51ada4fda2b47710351e6e4da8a95807d6d9f729&amp;follow=1'>Rename config.c to parsing.c + move cgit_parse_query from cgit.c to parsing.c</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-11 12:10:12 +0100'>2006-12-11</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgit.h?id=318d106300102c19d114a4ea89265b0a4060d9cb&amp;follow=1'>Avoid infinite loops in caching layer</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Add a global variable, cgit_max_lock_attemps, to avoid the possibility of
infinite loops when failing to acquire a lockfile. This could happen on
broken setups or under crazy server load.

Incidentally, this also fixes a lurking bug in cache_lock() where an
uninitialized returnvalue was used.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-11 11:23:05 +0100'>2006-12-11</span></td><td class='logsubject'><a href='/cgit-pink/commit/Makefile?id=a581ed8d6c15b0734b082fbadf0a907c2b170423&amp;follow=1'>Let 'make install' clear all cachefiles</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-11 09:57:58 +0100'>2006-12-11</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgit.h?id=f5069d88dff7a7ed2f4665904b03e906cca75a7c&amp;follow=1'>Fix cache algorithm loophole</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
This closes the door for unneccessary calls to cgit_fill_cache().

Noticed by Linus.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-10 23:54:45 +0100'>2006-12-10</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgit.c?id=76827d8679d1d2bd46e8cddf7da2ce4178e1d676&amp;follow=1'>Add version identifier in generated files</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-10 22:41:14 +0100'>2006-12-10</span></td><td class='logsubject'><a href='/cgit-pink/commit/html.c?id=7640d90b73c01b16bb04ce4c541f52cbaae5f82a&amp;follow=1'>Add license file and copyright notices</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2006-12-10 22:31:36 +0100'>2006-12-10</span></td><td class='logsubject'><a href='/cgit-pink/commit/html.c?id=25105d7ecaba474d4b7c364ebb586aac3dfc5abb&amp;follow=1'>Add caching infrastructure</a></td><td>Lars Hjemli