-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repo: load index eagerly to simplify error handling
If readonly_index() and index() returned Result, it would propagate to many call sites. That seems bad for API ergonomics. Suppose most "repo" commands depend on an index, I think it's okay to load index eagerly: - "jj config" doesn't load repo (nor index) - "jj workspace root" doesn't load repo (nor index) - some other mutation commands load index when printing commit summary - many other commands load index when resolving revset
- Loading branch information
Showing
1 changed file
with
23 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters