v0.7.0 45bfc5b

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