utopia-ia/elffuss-braid public
Changesets · Branches · Tags · Compare
| Changeset | 7789ef918c07eb0ea7a0da173d91aeed699d702d46869ce8adaac132685d05cd |
|---|---|
| Author | KikoCis <KikoCis@users.noreply.github.com> · 2026-10-16 11:45 +02:00 |
| Committer | KikoCis <KikoCis@users.noreply.github.com> · 2026-10-16 11:45 +02:00 |
| Parents | bceec3f3d91e |
2 files changed
modified README.md +3 −0
| @@ -205,6 +205,9 @@ | ||
| 205 | 205 | - `braid git import` reads a git repository through |
| 206 | 206 | [gitoxide](https://github.com/GitoxideLabs/gitoxide). Each commit is exported |
| 207 | 207 | again and compared with the original, so the round trip is bit for bit. |
| 208 | + Running it again imports only what is new, and a braid branch follows git's | |
| 209 | + only forward: one where braid has work git does not have stays where it is, | |
| 210 | + and the import lists it under `kept`. | |
| 208 | 211 | - `braid git sync` keeps a branch of GitHub, Gitea or any git remote in step |
| 209 | 212 | with a braid branch: it fetches and imports the remote branch, then |
| 210 | 213 | fast-forwards braid, or pushes braid's branch, merging first when both |
modified site/index.html +3 −3
| @@ -520,8 +520,8 @@ | ||
| 520 | 520 | <dl class="rows"> |
| 521 | 521 | <div class="row"> |
| 522 | 522 | <dt><span data-l="en" lang="en">Import</span><span data-l="es" lang="es">Importar</span><code lang="en">braid git import</code></dt> |
| 523 | -<dd><p data-l="en" lang="en">Goes through <a href="https://github.com/GitoxideLabs/gitoxide">gitoxide</a> and brings every local branch and tag; to bring every branch of a remote, import a <code>git clone <span class="nw">--mirror</span></code>. Each commit is exported again as it is imported, and the import stops unless its id comes back the same. Running it again imports only what is new, and points braid's branches and tags at git's, even backwards, which drops from the branch any changeset landed in braid that git does not have (the op log keeps it: <code>braid undo</code>). To keep a branch in step with a git remote, use <code class="nw">git sync</code>. Shallow and <span class="nw">SHA-256</span> repositories are refused for now.</p> | |
| 524 | -<p data-l="es" lang="es">Pasa por <a href="https://github.com/GitoxideLabs/gitoxide">gitoxide</a> y trae todas las ramas locales y etiquetas; para traer todas las ramas de un remoto, importa un <code>git clone <span class="nw">--mirror</span></code>. Cada commit se vuelve a exportar al importarlo, y la importación se detiene si su id no sale idéntico. Si se repite, solo importa lo nuevo, y apunta las ramas y etiquetas de braid a las de git, aunque sea hacia atrás, con lo que sale de la rama todo changeset aterrizado en braid que git no tenga (el registro de operaciones lo conserva: <code>braid undo</code>). Para mantener una rama al día con un remoto de git, usa <code class="nw">git sync</code>. Los clones superficiales y los repositorios <span class="nw">SHA-256</span> se rechazan por ahora.</p></dd> | |
| 523 | +<dd><p data-l="en" lang="en">Goes through <a href="https://github.com/GitoxideLabs/gitoxide">gitoxide</a> and brings every local branch and tag; to bring every branch of a remote, import a <code>git clone <span class="nw">--mirror</span></code>. Each commit is exported again as it is imported, and the import stops unless its id comes back the same. Running it again imports only what is new. A braid branch or tag follows git's only forward: when braid has work git does not have, or the two have diverged, it stays where it is, and the import lists it under <code>kept</code> with the reason. To keep a branch in step with a git remote, use <code class="nw">git sync</code>. Shallow and <span class="nw">SHA-256</span> repositories are refused for now.</p> | |
| 524 | +<p data-l="es" lang="es">Pasa por <a href="https://github.com/GitoxideLabs/gitoxide">gitoxide</a> y trae todas las ramas locales y etiquetas; para traer todas las ramas de un remoto, importa un <code>git clone <span class="nw">--mirror</span></code>. Cada commit se vuelve a exportar al importarlo, y la importación se detiene si su id no sale idéntico. Si se repite, solo importa lo nuevo. Una rama o etiqueta de braid solo sigue a la de git hacia delante: si braid tiene trabajo que git no tiene, o los dos han divergido, se queda donde está, y la importación la lista en <code>kept</code> con el motivo. Para mantener una rama al día con un remoto de git, usa <code class="nw">git sync</code>. Los clones superficiales y los repositorios <span class="nw">SHA-256</span> se rechazan por ahora.</p></dd> | |
| 525 | 525 | </div> |
| 526 | 526 | <div class="row"> |
| 527 | 527 | <dt><span data-l="en" lang="en">Export</span><span data-l="es" lang="es">Exportar</span><code lang="en">braid git export</code></dt> |
| @@ -625,7 +625,7 @@ | ||
| 625 | 625 | <tr><th scope="col"><span data-l="en" lang="en">Guarantee</span><span data-l="es" lang="es">Garantía</span></th><th scope="col"><span data-l="en" lang="en">How it is checked</span><span data-l="es" lang="es">Cómo se comprueba</span></th></tr> |
| 626 | 626 | </thead> |
| 627 | 627 | <tbody> |
| 628 | -<tr><td><span data-l="en" lang="en">Landing only moves a branch forward; <code>braid undo</code>, <code>braid ref set</code> and <code>braid git import</code> can move it back.</span><span data-l="es" lang="es">Aterrizar solo hace avanzar la rama; <code>braid undo</code>, <code>braid ref set</code> y <code>braid git import</code> pueden hacerla retroceder.</span></td> | |
| 628 | +<tr><td><span data-l="en" lang="en">Landing and importing only move a branch forward; <code>braid undo</code> and <code>braid ref set</code> can move it back.</span><span data-l="es" lang="es">Aterrizar e importar solo hacen avanzar la rama; <code>braid undo</code> y <code>braid ref set</code> pueden hacerla retroceder.</span></td> | |
| 629 | 629 | <td><span data-l="en" lang="en">Simulation invariant I1, checked after every step (<a href="https://github.com/KikoCis/elffuss-braid/tree/main/crates/sim"><code>crates/sim</code></a>).</span><span data-l="es" lang="es">Invariante I1 de la simulación, comprobada tras cada paso (<a href="https://github.com/KikoCis/elffuss-braid/tree/main/crates/sim"><code>crates/sim</code></a>).</span></td></tr> |
| 630 | 630 | <tr><td><span data-l="en" lang="en">A conflict leaves the branch where it was and exits 2.</span><span data-l="es" lang="es">Un conflicto deja la rama donde estaba y sale con 2.</span></td> |
| 631 | 631 | <td><span data-l="en" lang="en">I5; <a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/cli/tests/three_agents.rs"><code>three_agents.rs</code></a>.</span><span data-l="es" lang="es">I5; <a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/cli/tests/three_agents.rs"><code>three_agents.rs</code></a>.</span></td></tr> |