v0.20.0 032b9ef

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 lnw-2" 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" title="evil.go" hx-on:click="(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))">
321<span class="st" data-st="A" title="added">A</span>
322<span class="nm">
323<span class="p">evil.go</span>
324<span class="d">
325<bdi>
326</bdi>
327</span>
328</span>
329<span class="n">
330<span class="plus">+8</span>
331<span class="minus">-0</span>
332</span>
333</a>
334</li>
335</ol>
336</section>
337</aside>
338</div>
339<footer class="foot">
340<span>ermite devel</span>
341<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
342<button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?">
343<kbd aria-hidden="true">?</kbd> keyboard shortcuts</button>
344</footer>
345<div class="hint" role="status" aria-live="polite">
346<span class="hint-nav" :text="document.body.dataset.nav || ''">
347</span>
348<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
349</span>
350<span class="hint-flash" :text="document.body.dataset.flash || ''">
351</span>
352</div>
353<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()">
354<div class="panel-head">
355<h2>Keyboard shortcuts</h2>
356<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
357<kbd>esc</kbd> close</button>
358</div>
359<dl class="keys">
360<div>
361<dt>
362<kbd>ctrl k</kbd>
363<kbd>:</kbd>
364</dt>
365<dd>go to a section, branch, tag, file or repository</dd>
366</div>
367<div>
368<dt>
369<kbd>?</kbd>
370</dt>
371<dd>this list</dd>
372</div>
373<div>
374<dt>
375<kbd>j</kbd>
376<kbd>k</kbd>
377</dt>
378<dd>move the row cursor down / up</dd>
379</div>
380<div>
381<dt>
382<kbd>enter</kbd>
383</dt>
384<dd>open the row under the cursor</dd>
385</div>
386<div>
387<dt>
388<kbd>l</kbd>
389<kbd>h</kbd>
390</dt>
391<dd>into the side panel (on a merge request, its files) / back to the content; there j k move between its controls</dd>
392</div>
393<div>
394<dt>
395<kbd>g g</kbd>
396<kbd>G</kbd>
397</dt>
398<dd>first / last row</dd>
399</div>
400<div>
401<dt>
402<kbd>/</kbd>
403</dt>
404<dd>filter the list; on Files, find a file in the repository</dd>
405</div>
406<div>
407<dt>
408<kbd>b</kbd>
409</dt>
410<dd>switch branch or tag</dd>
411</div>
412<div>
413<dt>
414<kbd>s</kbd>
415<kbd>t</kbd>
416<kbd>c</kbd>
417<kbd>r</kbd>
418<kbd>m</kbd>
419</dt>
420<dd>tabs: summary, files, commits, branches &amp; tags, merge requests</dd>
421</div>
422<div>
423<dt>
424<kbd>g h</kbd>
425</dt>
426<dd>home</dd>
427</div>
428<div>
429<dt>
430<kbd>y</kbd>
431</dt>
432<dd>copy a permalink pinned to the commit</dd>
433</div>
434<div>
435<dt>
436<kbd>d</kbd>
437<kbd>u</kbd>
438<kbd>x</kbd>
439</dt>
440<dd>diff: split / unified / collapse or expand all</dd>
441</div>
442<div>
443<dt>
444<kbd>e</kbd>
445<kbd>E</kbd>
446</dt>
447<dd>diff: the whole file in view / every file, with the lines the hunks hide</dd>
448</div>
449<div>
450<dt>
451<kbd>n</kbd>
452</dt>
453<dd>merge request: next note in the diff</dd>
454</div>
455<div>
456<dt>
457<kbd>esc</kbd>
458</dt>
459<dd>close a dialog, leave a field</dd>
460</div>
461</dl>
462</dialog>
463<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()">
464<div class="panel-head">
465<label for="refs-filter" class="sr">filter branches and tags</label>
466<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
467<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
468<kbd>esc</kbd>
469</button>
470</div>
471<div class="panel-cols" data-picklist>
472<section aria-label="Branches">
473<h2>Branches <span class="count">2</span>
474</h2>
475<ul>
476<li>
477<a href="/diffs/tree/main">
478<span class="mark" aria-hidden="true">&nbsp;</span>main</a>
479</li>
480<li>
481<a href="/diffs/tree/side">
482<span class="mark" aria-hidden="true">&nbsp;</span>side</a>
483</li>
484</ul>
485</section>
486<section aria-label="Tags">
487<h2>Tags <span class="count">1</span>
488</h2>
489<ul>
490<li>
491<a href="/diffs/tree/v1.0.0">
492<span class="mark" aria-hidden="true">&nbsp;</span>v1.0.0</a>
493</li>
494</ul>
495</section>
496</div>
497</dialog>
498<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()">
499<div class="panel-head">
500<label for="cmd-q" class="sr">go to</label>
501<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)">
502<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
503<kbd>esc</kbd>
504</button>
505</div>
506<ul id="cmd-list" class="cmd-list" aria-label="Targets">
507<li data-k="go home" data-cursor>
508<a href="/" tabindex="-1">
509<span class="lbl">home</span>
510<span class="k">go</span>
511</a>
512</li>
513<li data-k="section summary">
514<a href="/diffs" tabindex="-1">
515<span class="lbl">summary</span>
516<span class="k">section</span>
517</a>
518</li>
519<li data-k="section files">
520<a href="/diffs/tree/main" tabindex="-1">
521<span class="lbl">files</span>
522<span class="k">section</span>
523</a>
524</li>
525<li data-k="section commits">
526<a href="/diffs/commits/main" tabindex="-1">
527<span class="lbl">commits</span>
528<span class="k">section</span>
529</a>
530</li>
531<li data-k="section branches &amp; tags">
532<a href="/diffs/refs" tabindex="-1">
533<span class="lbl">branches &amp; tags</span>
534<span class="k">section</span>
535</a>
536</li>
537<li data-k="section merge requests">
538<a href="/diffs/merge-requests" tabindex="-1">
539<span class="lbl">merge requests</span>
540<span class="k">section</span>
541</a>
542</li>
543<li data-k="section actions">
544<a href="/diffs/actions" tabindex="-1">
545<span class="lbl">actions</span>
546<span class="k">section</span>
547</a>
548</li>
549<li data-k="branch main">
550<a href="/diffs/tree/main" tabindex="-1">
551<span class="lbl">main</span>
552<span class="k">branch</span>
553</a>
554</li>
555<li data-k="branch side">
556<a href="/diffs/tree/side" tabindex="-1">
557<span class="lbl">side</span>
558<span class="k">branch</span>
559</a>
560</li>
561<li data-k="tag v1.0.0">
562<a href="/diffs/tree/v1.0.0" tabindex="-1">
563<span class="lbl">v1.0.0</span>
564<span class="k">tag</span>
565</a>
566</li>
567</ul>
568<p class="panel-foot">
569<span>
570<kbd>↑</kbd>
571<kbd>↓</kbd> move</span>
572<span>
573<kbd>enter</kbd> open</span>
574<span>
575<kbd>esc</kbd> close</span>
576</p>
577</dialog>
578<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
579         k-k from:body -> ermite.move(-1);
580         k-top from:body -> ermite.edge(false);
581         k-bottom from:body -> ermite.edge(true);
582         k-open from:body -> ermite.open();
583         k-right from:body -> ermite.rail(true);
584         k-left from:body -> ermite.rail(false);
585         k-esc from:body -> ermite.closeDialogs();
586         k-help from:body -> ermite.dialog('panel-help');
587         k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
588         k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
589         k-filter from:body -> ermite.focusFilter();
590         k-gh from:body -> ermite.go('.brand');
591         k-s from:body -> ermite.tab('s');
592         k-t from:body -> ermite.tab('t');
593         k-c from:body -> ermite.tab('c');
594         k-r from:body -> ermite.tab('r');
595         k-m from:body -> ermite.tab('m');
596         k-next from:body -> ermite.nextNote();
597         k-split from:body -> ermite.layout('split');
598         k-unified from:body -> ermite.layout('unified');
599         k-collapse from:body -> ermite.collapse();
600         k-expand from:body -> ermite.expandFile();
601         k-expandAll from:body -> ermite.expandAll();
602         k-permalink from:body -> ermite.permalink();
603         k-merge from:body -> window.ermiteMR?.openMerge();
604         k-read from:body -> window.ermiteMR?.markRead();
605         k-gf from:body -> window.ermiteMR?.focusFiles()">
606</div>
607</body>
608</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