ame='generator' content='cgit 1.4.1'/>
<meta name='robots' content='index, nofollow'/>
<link rel='stylesheet' type='text/css' href='/custom.css'/>
<link rel='alternate' title='Atom feed' href='https://git.causal.agency/cgit-pink/atom/tests/t0108-patch.sh?h=1.3.0' type='application/atom+xml'/>
<link rel='vcs-git' href='https://git.causal.agency/cgit-pink' title='cgit-pink Git repository'/>
</head>
<body>
<div id='cgit'><table id='header'>
<tr>
<td class='main'><a href='/'>index</a> : <a href='/cgit-pink/'>cgit-pink</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='e1782fff8a78b7f265432603351281ad2988bb40'/><input type='hidden' name='showmsg' value='1'/><select name='h' onchange='this.form.submit();'>
<option value='d3b59b863c7decca17bc39aa8023fe6f80287aee'>this commit</option>
<optgroup label='branches'><option value='master'>master</option>
<option value='wiki'>wiki</option>
</optgroup></select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>web frontend for git
</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit-pink/about/?h=1.3.0'>about</a> <a href='/cgit-pink/?h=1.3.0'>summary</a> <a href='/cgit-pink/refs/?h=1.3.0&amp;id=e1782fff8a78b7f265432603351281ad2988bb40'>refs</a> <a class='active' href='/cgit-pink/log/tests/t0108-patch.sh?h=1.3.0&amp;showmsg=1&amp;follow=1'>log</a> <a href='/cgit-pink/tree/tests/t0108-patch.sh?h=1.3.0&amp;id=e1782fff8a78b7f265432603351281ad2988bb40'>tree</a> <a href='/cgit-pink/commit/tests/t0108-patch.sh?h=1.3.0&amp;id=e1782fff8a78b7f265432603351281ad2988bb40&amp;follow=1'>commit</a> <a href='/cgit-pink/diff/tests/t0108-patch.sh?h=1.3.0&amp;id=e1782fff8a78b7f265432603351281ad2988bb40&amp;follow=1'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit-pink/log/tests/t0108-patch.sh'>
<input type='hidden' name='h' value='1.3.0'/><input type='hidden' name='id' value='e1782fff8a78b7f265432603351281ad2988bb40'/><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/?h=1.3.0&amp;id=e1782fff8a78b7f265432603351281ad2988bb40&amp;showmsg=1&amp;follow=1'>root</a>/<a href='/cgit-pink/log/tests?h=1.3.0&amp;id=e1782fff8a78b7f265432603351281ad2988bb40&amp;showmsg=1&amp;follow=1'>tests</a>/<a href='/cgit-pink/log/tests/t0108-patch.sh?h=1.3.0&amp;id=e1782fff8a78b7f265432603351281ad2988bb40&amp;showmsg=1&amp;follow=1'>t0108-patch.sh</a> (<a href='/cgit-pink/log/tests/t0108-patch.sh?h=1.3.0&amp;id=e1782fff8a78b7f265432603351281ad2988bb40&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/tests/t0108-patch.sh?h=1.3.0&amp;id=e1782fff8a78b7f265432603351281ad2988bb40&amp;follow=1'>Collapse</a>)</th><th class='left'>Author</th></tr>
<tr class='logheader'><td><span title='2009-08-09 13:39:44 +0200'>2009-08-09</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgit.c?h=1.3.0&amp;id=97b3d252629a8a3b9d356c2532dec7611438e4b9&amp;follow=1'>cgit.c: allow repo.*-filter options to unset the current default</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
If e.g. repo.commit-filter is specified as an empty string, this
is now properly handled as disabling the global commit-filter setting
for the current repository.

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


</td></tr>
<tr class='logheader'><td><span title='2009-08-09 13:22:00 +0200'>2009-08-09</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-tree.c?h=1.3.0&amp;id=e976df27952ca1e450c1c3d420532ac9f5e3036b&amp;follow=1'>Add support for repo.commit-filter and repo.source-filter</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
These options can be used to override the default commit- and source-
filter settings per repository.

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


</td></tr>
<tr class='logheader'><td><span title='2009-07-31 17:42:57 +0200'>2009-07-31</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-commit.c?h=1.3.0&amp;id=f35db1cd2b75aac6952aa07713e44ca01fd89727&amp;follow=1'>ui-commit: add support for 'commit-filter' option</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
This new option specifies a filter which is executed on the commit
message, i.e. the commit message is written to the filters STDIN and
the filters STDOUT is included verbatim as the commit message.

This can be used to implement commit linking by creating a simple
shell script in e.g. /usr/bin/cgit-commit-filter.sh like this:

#/bin/sh
sed -re 's|\b([0-9a-fA-F]{6,40})\b|&lt;a href="./?id=\1"&gt;\1&lt;/a&gt;|g'

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


</td></tr>
<tr class='logheader'><td><span title='2009-07-31 17:41:21 +0200'>2009-07-31</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-tree.c?h=1.3.0&amp;id=46b7abed99e957008c01c02cf612aa526ba92f04&amp;follow=1'>ui-tree: add support for source-filter option</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
This new option is used to specify an external command which will be
executed when displaying blob content in the tree view. Blob content
will be written to STDIN of the filter and STDOUT from the filter
will be included verbatim in the html output from cgit. The file name
of the blob will be passed as the only argument to the filter command.

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


</td></tr>
<tr class='logheader'><td><span title='2009-07-31 17:40:13 +0200'>2009-07-31</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-snapshot.c?h=1.3.0&amp;id=18dfbdc099c1398016427b6fa7f1a1facb363998&amp;follow=1'>ui-snapshot: use cgit_{open|close}_filter() to execute compressors</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
This simplifies the code in ui-snapshot.c and makes the test-suite
verify the new filter-functions.

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


</td></tr>
<tr class='logheader'><td><span title='2009-07-31 17:39:51 +0200'>2009-07-31</span></td><td class='logsubject'><a href='/cgit-pink/commit/shared.c?h=1.3.0&amp;id=d6f6072560c963065b13c704fa1fa6f8950e4bac&amp;follow=1'>Add generic filter/plugin infrastructure</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
The functions cgit_open_filter() and cgit_close_filter() can be used to
execute filters on the output stream from cgit.

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


</td></tr>
<tr class='logheader'><td><span title='2009-07-25 12:25:06 +0200'>2009-07-25</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgit.h?h=1.3.0&amp;id=7a8b3b4104aa5924163efd5f2af0de10b7fb5171&amp;follow=1'>cgit.h: keep config flags sorted</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='2009-07-25 12:23:30 +0200'>2009-07-25</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgitrc.5.txt?h=1.3.0&amp;id=86b753cbc076855f06a7d44490b2ba9f2b07d879&amp;follow=1'>cgitrc.5.txt: document 'embedded' and 'noheader'</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='2009-07-25 12:19:31 +0200'>2009-07-25</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-shared.c?h=1.3.0&amp;id=ef0c6aadf70e33ef63f0a68ca16338a49d0a3f1f&amp;follow=1'>Add support for 'noheader' option</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
This option can be used to disable the standard cgit page header, which
might be useful in combination with the 'embedded' option.

Suggested-by: Mark Constable &lt;markc@renta.net&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2009-07-25 12:03:54 +0200'>2009-07-25</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgitrc.5.txt?h=1.3.0&amp;id=f618e8f7174011e1e793df2c67fb9d1341652054&amp;follow=1'>cgitrc.5.txt: document 'head-include'</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='2009-07-25 11:51:19 +0200'>2009-07-25</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-blob.c?h=1.3.0&amp;id=596eb8fcb09697dd1b880123074d2ce6fdea03c0&amp;follow=1'>ui-blob: return 'application/octet-stream' for binary blobs</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='2009-07-25 11:46:34 +0200'>2009-07-25</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-plain.c?h=1.3.0&amp;id=7d7700804278bc92c8a5e401ae88d2451180abbe&amp;follow=1'>ui-plain: Return 'application/octet-stream' for binary files.</a></td><td>Remko Tronçon</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Remko Tronçon &lt;git@el-tramo.be&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2009-06-11 00:01:32 -0500'>2009-06-11</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-shared.c?h=1.3.0&amp;id=694dd43886f23723f415aed3afb62131cdbcaa51&amp;follow=1'>use cgit_httpscheme() for atom feed</a></td><td>Diego Ongaro</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
</td></tr>
<tr class='logheader'><td><span title='2009-06-11 00:00:35 -0500'>2009-06-11</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-shared.h?h=1.3.0&amp;id=87a89aed41136d388537b146000c4af6c1135a8c&amp;follow=1'>add cgit_httpscheme() -&gt; http:// or https://</a></td><td>Diego Ongaro</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
</td></tr>
<tr class='logheader'><td><span title='2009-06-07 20:43:08 +0200'>2009-06-07</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-shared.c?h=1.3.0&amp;id=e429fb0cca1e8c78da0ec38fe578bafdeec65534&amp;follow=1'>Return http statuscode 404 on unknown branch</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='2009-06-07 18:55:44 +0200'>2009-06-07</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-shared.c?h=1.3.0&amp;id=b5a3a2049648415e86d518a8bf2229b3e463b10f&amp;follow=1'>Add head-include configuration option.</a></td><td>Mark Lodato</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
This patch adds an option to the configuration file, "head-include",
which works just like "header" or "footer", except the content is put
into the HTML's &lt;head&gt; tag.


</td></tr>
<tr class='logheader'><td><span title='2009-03-15 09:31:05 +0100'>2009-03-15</span></td><td class='logsubject'><a href='/cgit-pink/commit/Makefile?h=1.3.0&amp;id=fdd559abd6e6ec5e522dc5496b2bcabd36d6ba9d&amp;follow=1'>CGIT 0.8.2.1</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='2009-03-15 09:27:54 +0100'>2009-03-15</span></td><td class='logsubject'><a href='/cgit-pink/commit/Makefile?h=1.3.0&amp;id=290c2a752fe2b338e6fd67f873bd80ff7e4665a2&amp;follow=1'>Fix doc-related glitches in Makefile and .gitignore</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='2009-03-15 08:57:33 +0100'>2009-03-15</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-snapshot.c?h=1.3.0&amp;id=6fddad7251021b307c8a3f70fdd2aa04c3f74eaa&amp;follow=1'>ui-snapshot: avoid segfault when no filename is specified</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='2009-03-15 08:46:15 +0100'>2009-03-15</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-tree.c?h=1.3.0&amp;id=112973615a78ce61fd6e767128df03b075be72ca&amp;follow=1'>fix segfault when displaying empty blobs</a></td><td>Eric Wong</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
When size is zero, subtracting one from it turns it into
ULONG_MAX which causes an out-of-bounds access on buf.

Signed-off-by: Eric Wong &lt;normalperson@yhbt.net&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2009-02-19 23:24:15 +0100'>2009-02-19</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-shared.c?h=1.3.0&amp;id=3ff58ddd51bcbcbc9b7649bad1a39aa98af4b49f&amp;follow=1'>Add support for HEAD requests</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
This is a quick 'n dirty hack which makes cgit honor HEAD requests.

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


</td></tr>
<tr class='logheader'><td><span title='2009-02-19 22:38:36 +0100'>2009-02-19</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-shared.c?h=1.3.0&amp;id=488a214a81a25c6397c56822ed1713f51dddc520&amp;follow=1'>Add support for ETag in 'plain' view</a></td><td>Lars Hjemli</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
When downloading a blob identified by its path, the client might want
to know if the blob has been modified since a previous download of the
same path. To this end, an ETag containing the blob SHA1 seems to be
ideal.

Todo: add support for HEAD requests...

Suggested-by: Owen Taylor &lt;otaylor@redhat.com&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2009-02-12 11:26:14 +0100'>2009-02-12</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-tree.c?h=1.3.0&amp;id=6063e7b5532481ffaa7a6f080de28547983bbeb7&amp;follow=1'>ui-tree: escape ascii-text properly in hexdump 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='2009-02-12 10:53:31 +0100'>2009-02-12</span></td><td class='logsubject'><a href='/cgit-pink/commit/Makefile?h=1.3.0&amp;id=5e57cb24fca398b1a8cbceb84d9e9649785459d2&amp;follow=1'>Makefile: add doc-related targets</a></td><td>Lars Hjemli