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