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 rename a file and delete another · diffs · example.test</title>
8<link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg">
9<link rel="preload" href="/-/static/fonts/atkinson-next.HASH.woff2" as="font" type="font/woff2" crossorigin>
10<link rel="stylesheet" href="/-/static/css/ermite.HASH.css">
11<meta name="htmx-config" content='{"history":false,"includeIndicatorCSS":false,"extensions":"sse, hx-live"}'>
12<script src="/-/static/js/htmx.min.HASH.js" defer>
13</script>
14<script src="/-/static/js/hx-live.min.HASH.js" defer>
15</script>
16<script src="/-/static/js/hx-sse.min.HASH.js" defer>
17</script>
18<script src="/-/static/js/ermite.HASH.js" defer>
19</script>
20<script src="/-/static/js/files.HASH.js" defer>
21</script>
22<script src="/-/static/js/passkey.HASH.js" defer>
23</script>
24<script src="/-/static/js/log.HASH.js" defer>
25</script>
26</head>
27<body data-ref="" data-sha="SHA40" data-sel="" data-nav="" data-paths="/diffs/paths/SHA40" data-blob="/diffs/blob/SHA40">
28<a class="skip" href="#main">skip to content</a>
29<header class="hdr">
30<div class="hdr-top">
31<a class="brand" href="/" data-g="h" title="home (g h)">
32<span class="brand-mark" aria-hidden="true">
33</span>
34<span class="brand-name">example.test</span>
35</a>
36<nav class="crumbs" aria-label="Path">
37<ol>
38<li>
39<a href="/diffs">diffs</a>
40</li>
41<li>
42<a href="/diffs/commits/main">commit</a>
43</li>
44<li>
45<span aria-current="page">SHA7</span>
46</li>
47</ol>
48</nav>
49<div class="hdr-acts">
50<a class="btn ref" href="/diffs/refs" data-fire="refs" aria-keyshortcuts="b" title="switch branch or tag (b)">
51<span class="ico i-branch" aria-hidden="true">
52</span>
53<span class="ref-name">detached</span>
54<span class="sha">SHA7</span>
55</a>
56<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">
57<span class="ico i-search" aria-hidden="true">
58</span>
59<span class="search-label">Go to…</span>
60<kbd aria-hidden="true">ctrl k</kbd>
61</button>
62<button type="button" class="btn icon" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?" aria-label="Keyboard shortcuts" title="keyboard shortcuts (?)">?</button>
63</div>
64</div>
65<nav class="tabs" aria-label="Sections">
66<ul>
67<li>
68<a href="/diffs" data-key="s" aria-keyshortcuts="s">Summary<kbd aria-hidden="true">s</kbd>
69</a>
70</li>
71<li>
72<a href="/diffs/tree/main" data-key="t" aria-keyshortcuts="t">Files<kbd aria-hidden="true">t</kbd>
73</a>
74</li>
75<li>
76<a href="/diffs/commits/main" data-key="c" aria-keyshortcuts="c" aria-current="page">Commits<kbd aria-hidden="true">c</kbd>
77</a>
78</li>
79<li>
80<a href="/diffs/refs" data-key="r" aria-keyshortcuts="r">Branches & tags<kbd aria-hidden="true">r</kbd>
81</a>
82</li>
83<li>
84<a href="/diffs/merge-requests" data-key="m" aria-keyshortcuts="m">Merge requests<kbd aria-hidden="true">m</kbd>
85</a>
86</li>
87<li>
88<a href="/diffs/actions" data-key="a" aria-keyshortcuts="a">Actions<kbd aria-hidden="true">a</kbd>
89</a>
90</li>
91</ul>
92</nav>
93</header>
94<div class="work has-rail">
95<main id="main" tabindex="-1">
96<header class="show">
97<h1>rename a file and delete another</h1>
98<dl class="kv show-kv">
99<dt>commit</dt>
100<dd>SHA40</dd>
101<dt>author</dt>
102<dd>T · <time datetime="STAMP" title="STAMP">AGO</time> · STAMP</dd>
103<dt>parent</dt>
104<dd>
105<a href="/diffs/commit/SHA40">SHA7</a>
106</dd>
107</dl>
108</header>
109<div class="diff-tools" role="toolbar" aria-label="Diff view">
110<span class="dim">2 files · <span class="plus">+0</span>
111<span class="minus">-1</span>
112</span>
113<span class="grow">
114</span>
115<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>
116</a>
117<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>
118</a>
119<button type="button" aria-keyshortcuts="x" data-js data-fire="collapse" class="btn">
120<span hx-live="this.textContent = q('[data-file][open]').count || !q('[data-file]').count ? 'Collapse all' : 'Expand all'">Collapse all</span>
121<kbd aria-hidden="true">x</kbd>
122</button>
123</div>
124<div id="diffs" data-diff="unified" hx-live="this.dataset.diff = sessionStorage.getItem('diff') || this.dataset.diff">
125<details class="dfile" id="f1" data-file>
126<summary>
127<span class="st">R</span>
128<span class="p">old.txt → docs-old.txt</span>
129<span class="plus">+0</span>
130<span class="minus">-0</span>
131<span class="note">renamed, 100% similar</span>
132</summary>
133<p class="note pad">renamed, 100% similar</p>
134</details>
135<details class="dfile" id="f2" data-file open>
136<summary>
137<span class="st">D</span>
138<span class="p">gone.txt</span>
139<span class="plus">+0</span>
140<span class="minus">-1</span>
141</summary>
142<div class="dscroll">
143<table class="dt uni" aria-label="gone.txt, unified">
144<tbody>
145<tr class="hunk">
146<td colspan="4">@@ -1,1 +0,0 @@</td>
147</tr>
148<tr class="del">
149<td class="ln">1</td>
150<td class="ln">
151</td>
152<td class="m">-</td>
153<td class="tx">bye</td>
154</tr>
155</tbody>
156</table>
157<table class="dt spl" aria-label="gone.txt, split">
158<colgroup>
159<col class="c-ln">
160<col class="c-m">
161<col>
162<col class="c-ln">
163<col class="c-m">
164<col>
165</colgroup>
166<tbody>
167<tr class="hunk">
168<td colspan="6">@@ -1,1 +0,0 @@</td>
169</tr>
170<tr>
171<td class="ln del">1</td>
172<td class="m del">-</td>
173<td class="tx del">bye</td>
174<td class="ln none">
175</td>
176<td class="m none">
177</td>
178<td class="tx none">
179</td>
180</tr>
181</tbody>
182</table>
183</div>
184</details>
185</div>
186</main>
187<aside class="rail" aria-label="Context">
188<section aria-labelledby="r-files">
189<h2 id="r-files">Files <span class="count">2</span>
190</h2>
191<ol class="files" aria-label="Changed files">
192<li>
193<a href="#f1" hx-on:click="document.getElementById(this.hash.slice(1)).open = true">
194<span class="st" title="R">R</span>
195<span class="p" title="old.txt → docs-old.txt">old.txt → docs-old.txt</span>
196<span class="n">
197<span class="plus">+0</span>
198<span class="minus">-0</span>
199</span>
200<span class="b" aria-hidden="true">
201<span class="plus">
202</span>
203<span class="minus">
204</span>··········</span>
205</a>
206</li>
207<li>
208<a href="#f2" hx-on:click="document.getElementById(this.hash.slice(1)).open = true">
209<span class="st" title="D">D</span>
210<span class="p" title="gone.txt">gone.txt</span>
211<span class="n">
212<span class="plus">+0</span>
213<span class="minus">-1</span>
214</span>
215<span class="b" aria-hidden="true">
216<span class="plus">
217</span>
218<span class="minus">----------</span>
219</span>
220</a>
221</li>
222</ol>
223</section>
224</aside>
225</div>
226<footer class="foot">
227<span>ermite devel</span>
228<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
229<span class="foot-keys">
230<kbd>?</kbd> keyboard shortcuts</span>
231</footer>
232<div class="hint" role="status" aria-live="polite">
233<span class="hint-nav" :text="document.body.dataset.nav || ''">
234</span>
235<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
236</span>
237<span class="hint-flash" :text="document.body.dataset.flash || ''">
238</span>
239</div>
240<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()">
241<div class="panel-head">
242<h2>Keyboard shortcuts</h2>
243<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
244<kbd>esc</kbd> close</button>
245</div>
246<dl class="keys">
247<div>
248<dt>
249<kbd>ctrl k</kbd>
250<kbd>:</kbd>
251</dt>
252<dd>go to a section, branch, tag, file or repository</dd>
253</div>
254<div>
255<dt>
256<kbd>?</kbd>
257</dt>
258<dd>this list</dd>
259</div>
260<div>
261<dt>
262<kbd>j</kbd>
263<kbd>k</kbd>
264</dt>
265<dd>move the row cursor down / up</dd>
266</div>
267<div>
268<dt>
269<kbd>enter</kbd>
270</dt>
271<dd>open the row under the cursor</dd>
272</div>
273<div>
274<dt>
275<kbd>g g</kbd>
276<kbd>G</kbd>
277</dt>
278<dd>first / last row</dd>
279</div>
280<div>
281<dt>
282<kbd>/</kbd>
283</dt>
284<dd>filter the list; on Files, find a file in the repository</dd>
285</div>
286<div>
287<dt>
288<kbd>b</kbd>
289</dt>
290<dd>switch branch or tag</dd>
291</div>
292<div>
293<dt>
294<kbd>s</kbd>
295<kbd>t</kbd>
296<kbd>c</kbd>
297<kbd>r</kbd>
298<kbd>m</kbd>
299</dt>
300<dd>tabs: summary, files, commits, branches & tags, merge requests</dd>
301</div>
302<div>
303<dt>
304<kbd>g h</kbd>
305</dt>
306<dd>home</dd>
307</div>
308<div>
309<dt>
310<kbd>y</kbd>
311</dt>
312<dd>copy a permalink pinned to the commit</dd>
313</div>
314<div>
315<dt>
316<kbd>d</kbd>
317<kbd>u</kbd>
318<kbd>x</kbd>
319</dt>
320<dd>diff: split / unified / collapse or expand all</dd>
321</div>
322<div>
323<dt>
324<kbd>n</kbd>
325</dt>
326<dd>merge request: next note in the diff</dd>
327</div>
328<div>
329<dt>
330<kbd>esc</kbd>
331</dt>
332<dd>close a dialog, leave a field</dd>
333</div>
334</dl>
335</dialog>
336<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()">
337<div class="panel-head">
338<label for="refs-filter" class="sr">filter branches and tags</label>
339<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
340<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
341<kbd>esc</kbd>
342</button>
343</div>
344<div class="panel-cols" data-picklist>
345<section aria-label="Branches">
346<h2>Branches <span class="count">2</span>
347</h2>
348<ul>
349<li>
350<a href="/diffs/tree/main">
351<span class="mark" aria-hidden="true"> </span>main</a>
352</li>
353<li>
354<a href="/diffs/tree/side">
355<span class="mark" aria-hidden="true"> </span>side</a>
356</li>
357</ul>
358</section>
359<section aria-label="Tags">
360<h2>Tags <span class="count">1</span>
361</h2>
362<ul>
363<li>
364<a href="/diffs/tree/v1.0.0">
365<span class="mark" aria-hidden="true"> </span>v1.0.0</a>
366</li>
367</ul>
368</section>
369</div>
370</dialog>
371<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()">
372<div class="panel-head">
373<label for="cmd-q" class="sr">go to</label>
374<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)">
375<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
376<kbd>esc</kbd>
377</button>
378</div>
379<ul id="cmd-list" class="cmd-list" aria-label="Targets">
380<li data-k="go home" data-cursor>
381<a href="/" tabindex="-1">
382<span class="lbl">home</span>
383<span class="k">go</span>
384</a>
385</li>
386<li data-k="section summary">
387<a href="/diffs" tabindex="-1">
388<span class="lbl">summary</span>
389<span class="k">section</span>
390</a>
391</li>
392<li data-k="section files">
393<a href="/diffs/tree/main" tabindex="-1">
394<span class="lbl">files</span>
395<span class="k">section</span>
396</a>
397</li>
398<li data-k="section commits">
399<a href="/diffs/commits/main" tabindex="-1">
400<span class="lbl">commits</span>
401<span class="k">section</span>
402</a>
403</li>
404<li data-k="section branches & tags">
405<a href="/diffs/refs" tabindex="-1">
406<span class="lbl">branches & tags</span>
407<span class="k">section</span>
408</a>
409</li>
410<li data-k="section merge requests">
411<a href="/diffs/merge-requests" tabindex="-1">
412<span class="lbl">merge requests</span>
413<span class="k">section</span>
414</a>
415</li>
416<li data-k="section actions">
417<a href="/diffs/actions" tabindex="-1">
418<span class="lbl">actions</span>
419<span class="k">section</span>
420</a>
421</li>
422<li data-k="branch main">
423<a href="/diffs/tree/main" tabindex="-1">
424<span class="lbl">main</span>
425<span class="k">branch</span>
426</a>
427</li>
428<li data-k="branch side">
429<a href="/diffs/tree/side" tabindex="-1">
430<span class="lbl">side</span>
431<span class="k">branch</span>
432</a>
433</li>
434<li data-k="tag v1.0.0">
435<a href="/diffs/tree/v1.0.0" tabindex="-1">
436<span class="lbl">v1.0.0</span>
437<span class="k">tag</span>
438</a>
439</li>
440</ul>
441<p class="panel-foot">
442<span>
443<kbd>↑</kbd>
444<kbd>↓</kbd> move</span>
445<span>
446<kbd>enter</kbd> open</span>
447<span>
448<kbd>esc</kbd> close</span>
449</p>
450</dialog>
451<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
452 k-k from:body -> ermite.move(-1);
453 k-top from:body -> ermite.edge(false);
454 k-bottom from:body -> ermite.edge(true);
455 k-open from:body -> ermite.open();
456 k-esc from:body -> ermite.closeDialogs();
457 k-help from:body -> ermite.dialog('panel-help');
458 k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
459 k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
460 k-filter from:body -> ermite.focusFilter();
461 k-gh from:body -> ermite.go('.brand');
462 k-s from:body -> ermite.tab('s');
463 k-t from:body -> ermite.tab('t');
464 k-c from:body -> ermite.tab('c');
465 k-r from:body -> ermite.tab('r');
466 k-m from:body -> ermite.tab('m');
467 k-next from:body -> ermite.nextNote();
468 k-split from:body -> ermite.layout('split');
469 k-unified from:body -> ermite.layout('unified');
470 k-collapse from:body -> ermite.collapse();
471 k-permalink from:body -> ermite.permalink()">
472</div>
473</body>
474</html>