Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for resolving scratchpads relative to the current week #1296

Merged
merged 4 commits into from
Dec 5, 2024

Conversation

notheotherben
Copy link
Member

This PR introduces the ability to run commands like gt scratch ~5 or gt scratch ^2 to resolve the scratchpad from (respectively) 5 weeks ago or 2 weeks ago. This closes #1295

@github-actions github-actions bot added the feature A new feature for Git-Tool label Dec 5, 2024
Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 97.82609% with 1 line in your changes missing coverage. Please review.

Project coverage is 84.40%. Comparing base (ae8f76c) to head (98c759f).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/core/resolver.rs 97.56% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1296      +/-   ##
==========================================
+ Coverage   84.32%   84.40%   +0.07%     
==========================================
  Files          91       91              
  Lines        9213     9257      +44     
==========================================
+ Hits         7769     7813      +44     
  Misses       1444     1444              
Files with missing lines Coverage Δ
src/commands/scratch.rs 98.82% <100.00%> (+0.01%) ⬆️
src/completion/completer.rs 94.59% <100.00%> (+0.15%) ⬆️
src/core/resolver.rs 83.66% <97.56%> (+1.82%) ⬆️

@notheotherben notheotherben merged commit 31800bd into main Dec 5, 2024
11 checks passed
@notheotherben notheotherben deleted the feat/scratch-ref branch December 5, 2024 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature for Git-Tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Add support for gt scratch ^1 for "last week's scratchpad"
1 participant