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