v0.19.0 55a688e

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