Skip to content

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Oct 8, 2025

#7072

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added/updated tests to cover my changes

yuja added 3 commits October 8, 2025 21:49
The next patch will allow setting tracked state to absent remote refs.
This will allow us to set up tracking state and push new bookmarks in two steps
#7072.

Absent tracked remote refs are deleted with the corresponding local ref. I
originally considered this rule could be enforced by git::import/export_refs(),
but it seemed weird if absent remote refs were left when the tracking local ref
was deleted by user. Therefore, this invariant is ensured by the view API.

Since "jj bookmark track" cannot track absent remote refs yet, this patch
doesn't have UX changes that should be documented.
Since "tracked" state doesn't exist in Git, git::import_refs() should ignore
absent->absent "changes". git::export_refs() just works because it compares only
ref targets.
@yuja yuja requested a review from a team as a code owner October 8, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant