v0.21.0 ef38ad0

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