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 & 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 <b>html</b> & "quotes".</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="group" 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 chroma">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 chroma">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 chroma">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 chroma">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 chroma">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 chroma">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 chroma">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 chroma ctx">one</td>
216<td class="ln ctx">1</td>
217<td class="m ctx">
218</td>
219<td class="tx chroma ctx">one</td>
220</tr>
221<tr>
222<td class="ln del">2</td>
223<td class="m del">-</td>
224<td class="tx chroma del">two</td>
225<td class="ln add">2</td>
226<td class="m add">+</td>
227<td class="tx chroma 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 chroma ctx">three</td>
234<td class="ln ctx">3</td>
235<td class="m ctx">
236</td>
237<td class="tx chroma 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 chroma ctx">four</td>
244<td class="ln ctx">4</td>
245<td class="m ctx">
246</td>
247<td class="tx chroma 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 chroma ctx">five</td>
254<td class="ln ctx">5</td>
255<td class="m ctx">
256</td>
257<td class="tx chroma 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 chroma 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<div class="keys-pref">
348<label>
349<input type="checkbox" id="keys-off" aria-describedby="keys-note" hx-on:change="ermite.setKeysOff(this.checked)"> Turn off single-key shortcuts</label>
350<p id="keys-note" class="dim">Single-key shortcuts are on. ctrl k and esc work whatever this says.</p>
351</div>
352<dl class="keys">
353<div>
354<dt>
355<kbd>ctrl k</kbd>
356<kbd>:</kbd>
357</dt>
358<dd>go to a section, branch, tag, file or repository</dd>
359</div>
360<div>
361<dt>
362<kbd>?</kbd>
363</dt>
364<dd>this list</dd>
365</div>
366<div>
367<dt>
368<kbd>j</kbd>
369<kbd>k</kbd>
370</dt>
371<dd>move the row cursor down / up</dd>
372</div>
373<div>
374<dt>
375<kbd>enter</kbd>
376</dt>
377<dd>open the row under the cursor; on Files, a directory opens or closes in place</dd>
378</div>
379<div>
380<dt>
381<kbd>↑</kbd>
382<kbd>↓</kbd>
383<kbd>←</kbd>
384<kbd>→</kbd>
385<kbd>home</kbd>
386<kbd>end</kbd>
387</dt>
388<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>
389</div>
390<div>
391<dt>
392<kbd>l</kbd>
393<kbd>h</kbd>
394</dt>
395<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>
396</div>
397<div>
398<dt>
399<kbd>g g</kbd>
400<kbd>G</kbd>
401</dt>
402<dd>first / last row</dd>
403</div>
404<div>
405<dt>
406<kbd>/</kbd>
407</dt>
408<dd>filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)</dd>
409</div>
410<div>
411<dt>
412<kbd>b</kbd>
413</dt>
414<dd>switch branch or tag</dd>
415</div>
416<div>
417<dt>
418<kbd>s</kbd>
419<kbd>t</kbd>
420<kbd>c</kbd>
421<kbd>r</kbd>
422<kbd>m</kbd>
423</dt>
424<dd>tabs: summary, files, commits, branches & tags, merge requests</dd>
425</div>
426<div>
427<dt>
428<kbd>g h</kbd>
429</dt>
430<dd>home</dd>
431</div>
432<div>
433<dt>
434<kbd>y</kbd>
435</dt>
436<dd>copy a permalink pinned to the commit</dd>
437</div>
438<div>
439<dt>
440<kbd>d</kbd>
441<kbd>u</kbd>
442<kbd>x</kbd>
443</dt>
444<dd>diff: split / unified / collapse or expand all</dd>
445</div>
446<div>
447<dt>
448<kbd>e</kbd>
449<kbd>E</kbd>
450</dt>
451<dd>diff: the whole file in view / every file, with the lines the hunks hide</dd>
452</div>
453<div>
454<dt>
455<kbd>n</kbd>
456</dt>
457<dd>merge request: next note in the diff</dd>
458</div>
459<div>
460<dt>
461<kbd>esc</kbd>
462</dt>
463<dd>close a dialog, leave a field</dd>
464</div>
465</dl>
466</dialog>
467<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()">
468<div class="panel-head">
469<label for="refs-filter" class="sr">filter branches and tags</label>
470<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
471<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
472<kbd>esc</kbd>
473</button>
474</div>
475<div class="panel-cols" data-picklist>
476<section aria-label="Branches">
477<h2>Branches <span class="count">2</span>
478</h2>
479<ul>
480<li>
481<a href="/diffs/tree/main">
482<span class="mark" aria-hidden="true"> </span>main</a>
483</li>
484<li>
485<a href="/diffs/tree/side">
486<span class="mark" aria-hidden="true"> </span>side</a>
487</li>
488</ul>
489</section>
490<section aria-label="Tags">
491<h2>Tags <span class="count">1</span>
492</h2>
493<ul>
494<li>
495<a href="/diffs/tree/v1.0.0">
496<span class="mark" aria-hidden="true"> </span>v1.0.0</a>
497</li>
498</ul>
499</section>
500</div>
501</dialog>
502<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()">
503<div class="panel-head">
504<label for="cmd-q" class="sr">go to</label>
505<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)">
506<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
507<kbd>esc</kbd>
508</button>
509</div>
510<ul id="cmd-list" class="cmd-list" role="listbox" aria-label="Targets">
511<li id="cmd-o0" role="option" aria-selected="true" data-k="go home" data-cursor>
512<a href="/" tabindex="-1">
513<span class="lbl">home</span>
514<span class="k">go</span>
515</a>
516</li>
517<li id="cmd-o1" role="option" aria-selected="false" data-k="section summary">
518<a href="/diffs" tabindex="-1">
519<span class="lbl">summary</span>
520<span class="k">section</span>
521</a>
522</li>
523<li id="cmd-o2" role="option" aria-selected="false" data-k="section files">
524<a href="/diffs/tree/main" tabindex="-1">
525<span class="lbl">files</span>
526<span class="k">section</span>
527</a>
528</li>
529<li id="cmd-o3" role="option" aria-selected="false" data-k="section commits">
530<a href="/diffs/commits/main" tabindex="-1">
531<span class="lbl">commits</span>
532<span class="k">section</span>
533</a>
534</li>
535<li id="cmd-o4" role="option" aria-selected="false" data-k="section branches & tags">
536<a href="/diffs/refs" tabindex="-1">
537<span class="lbl">branches & tags</span>
538<span class="k">section</span>
539</a>
540</li>
541<li id="cmd-o5" role="option" aria-selected="false" data-k="section merge requests">
542<a href="/diffs/merge-requests" tabindex="-1">
543<span class="lbl">merge requests</span>
544<span class="k">section</span>
545</a>
546</li>
547<li id="cmd-o6" role="option" aria-selected="false" data-k="section actions">
548<a href="/diffs/actions" tabindex="-1">
549<span class="lbl">actions</span>
550<span class="k">section</span>
551</a>
552</li>
553<li id="cmd-o7" role="option" aria-selected="false" data-k="branch main">
554<a href="/diffs/tree/main" tabindex="-1">
555<span class="lbl">main</span>
556<span class="k">branch</span>
557</a>
558</li>
559<li id="cmd-o8" role="option" aria-selected="false" data-k="branch side">
560<a href="/diffs/tree/side" tabindex="-1">
561<span class="lbl">side</span>
562<span class="k">branch</span>
563</a>
564</li>
565<li id="cmd-o9" role="option" aria-selected="false" data-k="tag v1.0.0">
566<a href="/diffs/tree/v1.0.0" tabindex="-1">
567<span class="lbl">v1.0.0</span>
568<span class="k">tag</span>
569</a>
570</li>
571<li id="cmd-o10" role="option" aria-selected="false" data-k="action turn single-key shortcuts on off keyboard">
572<a href="#" data-fire="keys" tabindex="-1">
573<span class="lbl">turn single-key shortcuts off</span>
574<span class="k">action</span>
575</a>
576</li>
577</ul>
578<p class="panel-foot">
579<span>
580<kbd>↑</kbd>
581<kbd>↓</kbd> move</span>
582<span>
583<kbd>enter</kbd> open</span>
584<span>
585<kbd>esc</kbd> close</span>
586</p>
587</dialog>
588<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
589 k-k from:body -> ermite.move(-1);
590 k-top from:body -> ermite.edge(false);
591 k-bottom from:body -> ermite.edge(true);
592 k-open from:body -> ermite.open();
593 k-right from:body -> ermite.rail(true);
594 k-left from:body -> ermite.rail(false);
595 k-esc from:body -> ermite.closeDialogs();
596 k-help from:body -> ermite.dialog('panel-help');
597 k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
598 k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
599 k-filter from:body -> ermite.focusFilter();
600 k-gh from:body -> ermite.go('.brand');
601 k-s from:body -> ermite.tab('s');
602 k-t from:body -> ermite.tab('t');
603 k-c from:body -> ermite.tab('c');
604 k-r from:body -> ermite.tab('r');
605 k-m from:body -> ermite.tab('m');
606 k-next from:body -> ermite.nextNote();
607 k-split from:body -> ermite.layout('split');
608 k-unified from:body -> ermite.layout('unified');
609 k-collapse from:body -> ermite.collapse();
610 k-expand from:body -> ermite.expandFile();
611 k-expandAll from:body -> ermite.expandAll();
612 k-permalink from:body -> ermite.permalink();
613 k-merge from:body -> window.ermiteMR?.openMerge();
614 k-read from:body -> window.ermiteMR?.markRead();
615 k-gf from:body -> window.ermiteMR?.focusFiles();
616 k-keys from:body -> ermite.toggleKeys()">
617</div>
618</body>
619</html>