Skip to content

Conversation

gerhardol
Copy link
Member

Depends on #11848

Proposed changes

Git cache uses the command as the cache key. However a sha could
theoretically be duplicated in repos, so the path is added.
(This means that multiple clones (like worktrees) are no longer cached.)

Clean escape sequences before storing in the cache to speed up
fetching information from the cache.
Clean escape is also added to the cache key.

Cache DiffTastic commands, add environment variables as cache keys.

--

There is no strong requirement to include this PR in 5.0, but it improves DiffTastic usage in reviews. I switch the different mode several times per file and the delay to open difftastic is annoying.

Test methodology

The cache tests are updated - only the format of what is changed that is changed.

Merge strategy

I agree that the maintainer squash merge this PR (if the commit message is clear).


✒️ I contribute this code under The Developer Certificate of Origin.

@RussKie RussKie added the 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity label Aug 24, 2024
@gerhardol gerhardol removed the 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity label Aug 24, 2024
Git cache uses the command as the cache key. However a sha could
theoretically be duplicated in repos, so the path is added.
(This means that multiple clones (also worktrees) are no longer cached.)

Clean escape sequences before storing in the cache to speed up
fetching information from the cache.
Clean escape is also added to the cache key.

Cache DiffTastic commands, add environment variables as cache keys.
@gerhardol gerhardol force-pushed the feature/cache-dir-key branch from 28e30da to 37ce0e3 Compare August 25, 2024 06:43
@gerhardol
Copy link
Member Author

I would like to include this in 5.0
It do change the Plugin interface, I can submit a variant that moves a few lines from GitModule to GitUIExtensions to avoid that.

@RussKie
Copy link
Member

RussKie commented Aug 26, 2024

I would like to include this in 5.0 It do change the Plugin interface, I can submit a variant that moves a few lines from GitModule to GitUIExtensions to avoid that.

Boo... 😒

@RussKie RussKie added this to the 5.0.0 milestone Aug 26, 2024
@gerhardol gerhardol merged commit 4575820 into gitextensions:master Aug 28, 2024
3 of 4 checks passed
@gerhardol gerhardol deleted the feature/cache-dir-key branch August 28, 2024 20:15
@RussKie RussKie modified the milestones: 5.0.0, 5.1 Nov 6, 2024
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.

3 participants