ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/docs
Yuya Nishihara ce0821f06d docs: adjust tracking branches design to deal with "fetch/push && undo"
The original idea was to completely replace git_refs with remotes["git"] by
introducing "forgotten" state, but it turned out to break "fetch && undo"
scenario. There are other ways around, but they also have problems:

* Sets tombstone on forgotten/deleted remote refs, exports remote refs without
  comparing to the known refs.
  * `jj undo` would need to insert tombstone by diffing old/new views.
  * `jj branch forget` would need to preserve the @git branch whereas the other
    remote branches would be forgotten.
* Always overwrites remote refs on export.
  * `jj git export` without importing would discard remote refs.

So, I decided to not remove git_refs. Apparently, it also improves the undo
behavior. In the new model, `jj git fetch && jj undo && jj git fetch` works
even if git_refs isn't rolled back. So we can unify the default of
`jj undo --what`.
2023-09-28 18:00:25 +09:00
..
design docs: adjust tracking branches design to deal with "fetch/push && undo" 2023-09-28 18:00:25 +09:00
technical docs: More info about syncing jj repo with rsync 2023-09-06 09:15:27 -07:00
branches.md
code-of-conduct.md
config.md docs: add missing word to config.md 2023-09-27 12:26:08 -05:00
config.toml configs: use Notepad as default editor on Windows 2023-08-10 17:09:07 +00:00
conflicts.md
contributing.md docs: add a section about profiling 2023-09-14 21:15:03 -07:00
FAQ.md faq: add entry about accidentally amended working copy 2023-09-08 08:59:59 -07:00
git-comparison.md Small addition to index comparison 2023-08-14 13:48:46 +09:00
git-compatibility.md docs: mention git pack-refs for co-located repos 2023-09-15 19:49:11 -07:00
github.md Docs: Make github.md a bit clearer 2023-09-28 01:11:47 +02:00
glossary.md revset: convert root symbol to function 2023-09-04 10:36:30 +09:00
install-and-setup.md install-and-setup.md: explain how to compile the latest release 2023-09-11 18:21:56 -07:00
operation-log.md docs: fix typo in operation-log.md 2023-08-13 05:08:45 +00:00
related-work.md docs: add doc comparing jj to Sapling (#1708) 2023-06-28 06:56:57 +02:00
revsets.md cli: add upstream remote to default trunk() 2023-09-19 20:51:23 -07:00
sapling-comparison.md docs: markdown fixups, mostly to remove links pointing outside docs 2023-08-28 10:43:48 -07:00
templates.md templates.md docs: Document string literal format 2023-09-15 20:16:09 -07:00
tutorial.md docs: prefer new revset operator :: over deprecated : 2023-09-06 13:09:14 -07:00
working-copy.md