v0.17.0 ab8e178

commit-trojan.html RawHistoryFolder

1<!doctype html>
2<html lang="en">
3<head>
4<meta charset="utf-8">
5<meta name="viewport" content="width=device-width, initial-scale=1">
6<meta name="color-scheme" content="light dark">
7<title>SHA7 add evil.go · diffs · example.test</title>
8<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
9<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c">
10<meta name="apple-mobile-web-app-title" content="ermite">
11<link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg">
12<link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png">
13<link rel="manifest" href="/-/static/app/manifest.HASH.webmanifest">
14<link rel="preload" href="/-/static/fonts/atkinson-next.HASH.woff2" as="font" type="font/woff2" crossorigin>
15<link rel="stylesheet" href="/-/static/css/ermite.HASH.css">
16<meta name="htmx-config" content='{"history":false,"includeIndicatorCSS":false,"extensions":"sse, hx-live"}'>
17<script src="/-/static/js/htmx.min.HASH.js" defer>
18</script>
19<script src="/-/static/js/hx-live.min.HASH.js" defer>
20</script>
21<script src="/-/static/js/hx-sse.min.HASH.js" defer>
22</script>
23<script src="/-/static/js/ermite.HASH.js" defer>
24</script>
25<script src="/-/static/js/files.HASH.js" defer>
26</script>
27<script src="/-/static/js/passkey.HASH.js" defer>
28</script>
29<script src="/-/static/js/log.HASH.js" defer>
30</script>
31</head>
32<body data-ref="" data-sha="SHA40" data-sel="" data-nav="" data-paths="/diffs/paths/SHA40" data-blob="/diffs/blob/SHA40">
33<a class="skip" href="#main">skip to content</a>
34<header class="hdr">
35<div class="hdr-top">
36<a class="brand" href="/" data-g="h" aria-label="home" title="home (g h)">
37<span class="brand-mark" aria-hidden="true">
38</span>
39</a>
40<nav class="crumbs" aria-label="Path">
41<ol>
42<li>
43<a href="/diffs">diffs</a>
44</li>
45<li>
46<a href="/diffs/commits/main">commit</a>
47</li>
48<li>
49<span aria-current="page">SHA7</span>
50</li>
51</ol>
52</nav>
53<div class="hdr-acts">
54<a class="btn ref" href="/diffs/refs" data-fire="refs" aria-keyshortcuts="b" title="switch branch or tag (b)">
55<span class="ico i-branch" aria-hidden="true">
56</span>
57<span class="ref-name">detached</span>
58<span class="sha">SHA7</span>
59</a>
60<button type="button" class="btn search" data-js aria-haspopup="dialog" aria-controls="panel-cmd" aria-keyshortcuts="Control+K :" title="go to a section, ref, file or repo (ctrl k or :)" data-fire="cmd">
61<span class="ico i-search" aria-hidden="true">
62</span>
63<span class="search-label">Go to…</span>
64<kbd aria-hidden="true">ctrl k</kbd>
65</button>
66</div>
67</div>
68<nav class="tabs" aria-label="Sections">
69<ul>
70<li>
71<a href="/diffs" data-key="s" aria-keyshortcuts="s">Summary<kbd aria-hidden="true">s</kbd>
72</a>
73</li>
74<li>
75<a href="/diffs/tree/main" data-key="t" aria-keyshortcuts="t">Files<kbd aria-hidden="true">t</kbd>
76</a>
77</li>
78<li>
79<a href="/diffs/commits/main" data-key="c" aria-keyshortcuts="c" aria-current="page">Commits<kbd aria-hidden="true">c</kbd>
80</a>
81</li>
82<li>
83<a href="/diffs/refs" data-key="r" aria-keyshortcuts="r">Branches &amp; tags<kbd aria-hidden="true">r</kbd>
84</a>
85</li>
86<li>
87<a href="/diffs/merge-requests" data-key="m" aria-keyshortcuts="m">Merge requests<kbd aria-hidden="true">m</kbd>
88</a>
89</li>
90<li>
91<a href="/diffs/actions" data-key="a" aria-keyshortcuts="a">Actions<kbd aria-hidden="true">a</kbd>
92</a>
93</li>
94</ul>
95</nav>
96</header>
97<div class="work has-rail">
98<main id="main" tabindex="-1">
99<header class="show">
100<h1>add evil.go</h1>
101<pre class="msg">looks &lt;U+202E&gt;fine&lt;U+202C&gt;</pre>
102<dl class="kv show-kv">
103<dt>commit</dt>
104<dd>SHA40</dd>
105<dt>author</dt>
106<dd>T  · <time datetime="STAMP" title="STAMP">AGO</time> · STAMP</dd>
107<dt>parent</dt>
108<dd>
109<a href="/diffs/commit/SHA40">SHA7</a>
110</dd>
111</dl>
112</header>
113<div class="diff-tools" role="toolbar" aria-label="Diff view">
114<span class="dim">1 file · <span class="plus">+8</span>
115<span class="minus">-0</span>
116</span>
117<span class="grow">
118</span>
119<a href="/diffs/commit/SHA40?view=unified" class="btn vbtn" data-view="unified" aria-keyshortcuts="u" aria-current="true" data-fire="unified" :aria-current="q('#diffs').attr['data-diff'] === this.dataset.view ? 'true' : false">Unified<kbd aria-hidden="true">u</kbd>
120</a>
121<a href="/diffs/commit/SHA40?view=split" class="btn vbtn" data-view="split" aria-keyshortcuts="d" data-fire="split" :aria-current="q('#diffs').attr['data-diff'] === this.dataset.view ? 'true' : false">Split<kbd aria-hidden="true">d</kbd>
122</a>
123<button type="button" aria-keyshortcuts="x" data-js data-fire="collapse" class="btn">
124<span hx-live="this.textContent = q('[data-file][open]').count || !q('[data-file]').count ? 'Collapse all' : 'Expand all'">Collapse all</span>
125<kbd aria-hidden="true">x</kbd>
126</button>
127</div>
128<p class="notice">this diff holds invisible characters (direction controls, zero-width characters). They are shown as <span class="inv">&lt;U+XXXX&gt;</span> markers, never applied.</p>
129<div id="diffs" data-diff="unified" hx-live="this.dataset.diff = sessionStorage.getItem('diff') || this.dataset.diff">
130<details class="dfile" id="f1" data-file open>
131<summary>
132<span class="st">A</span>
133<span class="p">evil.go</span>
134<span class="plus">+8</span>
135<span class="minus">-0</span>
136</summary>
137<div class="dscroll">
138<table class="dt uni" aria-label="evil.go, unified">
139<tbody>
140<tr class="hunk">
141<td colspan="4">@@ -0,0 +1,8 @@</td>
142</tr>
143<tr class="add">
144<td class="ln">
145</td>
146<td class="ln">1</td>
147<td class="m">+</td>
148<td class="tx">package evil</td>
149</tr>
150<tr class="add">
151<td class="ln">
152</td>
153<td class="ln">2</td>
154<td class="m">+</td>
155<td class="tx">
156</td>
157</tr>
158<tr class="add">
159<td class="ln">
160</td>
161<td class="ln">3</td>
162<td class="m">+</td>
163<td class="tx">func admin(user string) bool {</td>
164</tr>
165<tr class="add">
166<td class="ln">
167</td>
168<td class="ln">4</td>
169<td class="m">+</td>
170<td class="tx">	if user == &#34;user<span class="inv" title="invisible character">&lt;U+202E&gt;</span>
171<span class="inv" title="invisible character">&lt;U+2066&gt;</span>// check<span class="inv" title="invisible character">&lt;U+2069&gt;</span>
172<span class="inv" title="invisible character">&lt;U+2066&gt;</span>&#34; {</td>
173</tr>
174<tr class="add">
175<td class="ln">
176</td>
177<td class="ln">5</td>
178<td class="m">+</td>
179<td class="tx">		return true // z<span class="inv" title="invisible character">&lt;U+200B&gt;</span>w</td>
180</tr>
181<tr class="add">
182<td class="ln">
183</td>
184<td class="ln">6</td>
185<td class="m">+</td>
186<td class="tx">	}</td>
187</tr>
188<tr class="add">
189<td class="ln">
190</td>
191<td class="ln">7</td>
192<td class="m">+</td>
193<td class="tx">	return false</td>
194</tr>
195<tr class="add">
196<td class="ln">
197</td>
198<td class="ln">8</td>
199<td class="m">+</td>
200<td class="tx">}</td>
201</tr>
202</tbody>
203</table>
204<table class="dt spl" aria-label="evil.go, split">
205<colgroup>
206<col class="c-ln">
207<col class="c-m">
208<col>
209<col class="c-ln">
210<col class="c-m">
211<col>
212</colgroup>
213<tbody>
214<tr class="hunk">
215<td colspan="6">@@ -0,0 +1,8 @@</td>
216</tr>
217<tr>
218<td class="ln none">
219</td>
220<td class="m none">
221</td>
222<td class="tx none">
223</td>
224<td class="ln add">1</td>
225<td class="m add">+</td>
226<td class="tx add">package evil</td>
227</tr>
228<tr>
229<td class="ln none">
230</td>
231<td class="m none">
232</td>
233<td class="tx none">
234</td>
235<td class="ln add">2</td>
236<td class="m add">+</td>
237<td class="tx add">
238</td>
239</tr>
240<tr>
241<td class="ln none">
242</td>
243<td class="m none">
244</td>
245<td class="tx none">
246</td>
247<td class="ln add">3</td>
248<td class="m add">+</td>
249<td class="tx add">func admin(user string) bool {</td>
250</tr>
251<tr>
252<td class="ln none">
253</td>
254<td class="m none">
255</td>
256<td class="tx none">
257</td>
258<td class="ln add">4</td>
259<td class="m add">+</td>
260<td class="tx add">	if user == &#34;user<span class="inv" title="invisible character">&lt;U+202E&gt;</span>
261<span class="inv" title="invisible character">&lt;U+2066&gt;</span>// check<span class="inv" title="invisible character">&lt;U+2069&gt;</span>
262<span class="inv" title="invisible character">&lt;U+2066&gt;</span>&#34; {</td>
263</tr>
264<tr>
265<td class="ln none">
266</td>
267<td class="m none">
268</td>
269<td class="tx none">
270</td>
271<td class="ln add">5</td>
272<td class="m add">+</td>
273<td class="tx add">		return true // z<span class="inv" title="invisible character">&lt;U+200B&gt;</span>w</td>
274</tr>
275<tr>
276<td class="ln none">
277</td>
278<td class="m none">
279</td>
280<td class="tx none">
281</td>
282<td class="ln add">6</td>
283<td class="m add">+</td>
284<td class="tx add">	}</td>
285</tr>
286<tr>
287<td class="ln none">
288</td>
289<td class="m none">
290</td>
291<td class="tx none">
292</td>
293<td class="ln add">7</td>
294<td class="m add">+</td>
295<td class="tx add">	return false</td>
296</tr>
297<tr>
298<td class="ln none">
299</td>
300<td class="m none">
301</td>
302<td class="tx none">
303</td>
304<td class="ln add">8</td>
305<td class="m add">+</td>
306<td class="tx add">}</td>
307</tr>
308</tbody>
309</table>
310</div>
311</details>
312</div>
313</main>
314<aside class="rail" aria-label="Context">
315<section aria-labelledby="r-files">
316<h2 id="r-files">Files <span class="count">1</span>
317</h2>
318<ol class="files" aria-label="Changed files">
319<li>
320<a href="#f1" hx-on:click="document.getElementById(this.hash.slice(1)).open = true">
321<span class="st" title="A">A</span>
322<span class="p" title="evil.go">evil.go</span>
323<span class="n">
324<span class="plus">+8</span>
325<span class="minus">-0</span>
326</span>
327<span class="b" aria-hidden="true">
328<span class="plus">++++++++++</span>
329<span class="minus">
330</span>
331</span>
332</a>
333</li>
334</ol>
335</section>
336</aside>
337</div>
338<footer class="foot">
339<span>ermite devel</span>
340<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
341<button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?">
342<kbd aria-hidden="true">?</kbd> keyboard shortcuts</button>
343</footer>
344<div class="hint" role="status" aria-live="polite">
345<span class="hint-nav" :text="document.body.dataset.nav || ''">
346</span>
347<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
348</span>
349<span class="hint-flash" :text="document.body.dataset.flash || ''">
350</span>
351</div>
352<dialog id="panel-help" class="panel modal" aria-label="Keyboard shortcuts" hx-on:keydown="event.key === 'Escape' && (event.preventDefault(), this.close())" hx-on:click="event.target === this && this.close()">
353<div class="panel-head">
354<h2>Keyboard shortcuts</h2>
355<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
356<kbd>esc</kbd> close</button>
357</div>
358<dl class="keys">
359<div>
360<dt>
361<kbd>ctrl k</kbd>
362<kbd>:</kbd>
363</dt>
364<dd>go to a section, branch, tag, file or repository</dd>
365</div>
366<div>
367<dt>
368<kbd>?</kbd>
369</dt>
370<dd>this list</dd>
371</div>
372<div>
373<dt>
374<kbd>j</kbd>
375<kbd>k</kbd>
376</dt>
377<dd>move the row cursor down / up</dd>
378</div>
379<div>
380<dt>
381<kbd>enter</kbd>
382</dt>
383<dd>open the row under the cursor</dd>
384</div>
385<div>
386<dt>
387<kbd>g g</kbd>
388<kbd>G</kbd>
389</dt>
390<dd>first / last row</dd>
391</div>
392<div>
393<dt>
394<kbd>/</kbd>
395</dt>
396<dd>filter the list; on Files, find a file in the repository</dd>
397</div>
398<div>
399<dt>
400<kbd>b</kbd>
401</dt>
402<dd>switch branch or tag</dd>
403</div>
404<div>
405<dt>
406<kbd>s</kbd>
407<kbd>t</kbd>
408<kbd>c</kbd>
409<kbd>r</kbd>
410<kbd>m</kbd>
411</dt>
412<dd>tabs: summary, files, commits, branches &amp; tags, merge requests</dd>
413</div>
414<div>
415<dt>
416<kbd>g h</kbd>
417</dt>
418<dd>home</dd>
419</div>
420<div>
421<dt>
422<kbd>y</kbd>
423</dt>
424<dd>copy a permalink pinned to the commit</dd>
425</div>
426<div>
427<dt>
428<kbd>d</kbd>
429<kbd>u</kbd>
430<kbd>x</kbd>
431</dt>
432<dd>diff: split / unified / collapse or expand all</dd>
433</div>
434<div>
435<dt>
436<kbd>n</kbd>
437</dt>
438<dd>merge request: next note in the diff</dd>
439</div>
440<div>
441<dt>
442<kbd>esc</kbd>
443</dt>
444<dd>close a dialog, leave a field</dd>
445</div>
446</dl>
447</dialog>
448<dialog id="panel-refs" class="panel modal" aria-label="Switch ref" hx-on:keydown="event.key === 'Escape' && (event.preventDefault(), this.close())" hx-on:click="event.target === this && this.close()">
449<div class="panel-head">
450<label for="refs-filter" class="sr">filter branches and tags</label>
451<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
452<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
453<kbd>esc</kbd>
454</button>
455</div>
456<div class="panel-cols" data-picklist>
457<section aria-label="Branches">
458<h2>Branches <span class="count">2</span>
459</h2>
460<ul>
461<li>
462<a href="/diffs/tree/main">
463<span class="mark" aria-hidden="true">&nbsp;</span>main</a>
464</li>
465<li>
466<a href="/diffs/tree/side">
467<span class="mark" aria-hidden="true">&nbsp;</span>side</a>
468</li>
469</ul>
470</section>
471<section aria-label="Tags">
472<h2>Tags <span class="count">1</span>
473</h2>
474<ul>
475<li>
476<a href="/diffs/tree/v1.0.0">
477<span class="mark" aria-hidden="true">&nbsp;</span>v1.0.0</a>
478</li>
479</ul>
480</section>
481</div>
482</dialog>
483<dialog id="panel-cmd" class="panel modal" aria-label="Go to" hx-on:close="ermiteFinder.paletteClose()" hx-on:keydown="event.key === 'Escape' && (event.preventDefault(), this.close())" hx-on:click="event.target === this && this.close()">
484<div class="panel-head">
485<label for="cmd-q" class="sr">go to</label>
486<input id="cmd-q" type="search" placeholder="Go to a section, branch, tag, file or repository…" autocomplete="off" spellcheck="false" aria-controls="cmd-list" hx-on:input="ermite.cmdFilter(this); ermiteFinder.palette(this)" hx-on:keydown="ermite.cmdKey(event)">
487<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
488<kbd>esc</kbd>
489</button>
490</div>
491<ul id="cmd-list" class="cmd-list" aria-label="Targets">
492<li data-k="go home" data-cursor>
493<a href="/" tabindex="-1">
494<span class="lbl">home</span>
495<span class="k">go</span>
496</a>
497</li>
498<li data-k="section summary">
499<a href="/diffs" tabindex="-1">
500<span class="lbl">summary</span>
501<span class="k">section</span>
502</a>
503</li>
504<li data-k="section files">
505<a href="/diffs/tree/main" tabindex="-1">
506<span class="lbl">files</span>
507<span class="k">section</span>
508</a>
509</li>
510<li data-k="section commits">
511<a href="/diffs/commits/main" tabindex="-1">
512<span class="lbl">commits</span>
513<span class="k">section</span>
514</a>
515</li>
516<li data-k="section branches &amp; tags">
517<a href="/diffs/refs" tabindex="-1">
518<span class="lbl">branches &amp; tags</span>
519<span class="k">section</span>
520</a>
521</li>
522<li data-k="section merge requests">
523<a href="/diffs/merge-requests" tabindex="-1">
524<span class="lbl">merge requests</span>
525<span class="k">section</span>
526</a>
527</li>
528<li data-k="section actions">
529<a href="/diffs/actions" tabindex="-1">
530<span class="lbl">actions</span>
531<span class="k">section</span>
532</a>
533</li>
534<li data-k="branch main">
535<a href="/diffs/tree/main" tabindex="-1">
536<span class="lbl">main</span>
537<span class="k">branch</span>
538</a>
539</li>
540<li data-k="branch side">
541<a href="/diffs/tree/side" tabindex="-1">
542<span class="lbl">side</span>
543<span class="k">branch</span>
544</a>
545</li>
546<li data-k="tag v1.0.0">
547<a href="/diffs/tree/v1.0.0" tabindex="-1">
548<span class="lbl">v1.0.0</span>
549<span class="k">tag</span>
550</a>
551</li>
552</ul>
553<p class="panel-foot">
554<span>
555<kbd>↑</kbd>
556<kbd>↓</kbd> move</span>
557<span>
558<kbd>enter</kbd> open</span>
559<span>
560<kbd>esc</kbd> close</span>
561</p>
562</dialog>
563<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
564         k-k from:body -> ermite.move(-1);
565         k-top from:body -> ermite.edge(false);
566         k-bottom from:body -> ermite.edge(true);
567         k-open from:body -> ermite.open();
568         k-esc from:body -> ermite.closeDialogs();
569         k-help from:body -> ermite.dialog('panel-help');
570         k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
571         k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
572         k-filter from:body -> ermite.focusFilter();
573         k-gh from:body -> ermite.go('.brand');
574         k-s from:body -> ermite.tab('s');
575         k-t from:body -> ermite.tab('t');
576         k-c from:body -> ermite.tab('c');
577         k-r from:body -> ermite.tab('r');
578         k-m from:body -> ermite.tab('m');
579         k-next from:body -> ermite.nextNote();
580         k-split from:body -> ermite.layout('split');
581         k-unified from:body -> ermite.layout('unified');
582         k-collapse from:body -> ermite.collapse();
583         k-permalink from:body -> ermite.permalink()">
584</div>
585</body>
586</html>

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 2

Tags 45

↑↓ moveenter openesc close