-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git: Only reset Git index if non-empty
In chromium/src.git, this gives an approximate ~0.83s speedup for commands if the Git index is empty, and a ~0.14s slowdown if the Git index is non-empty. As most users using jj will likely be using jj to write to a colocated repo - and therefore avoid modifying the Git index - this should be a general speedup for most colocated checkouts.
- Loading branch information
1 parent
b31f75b
commit a075a5c
Showing
2 changed files
with
61 additions
and
2 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
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