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

refactor duplicate root stripping #100

Merged
merged 10 commits into from
Nov 21, 2023
Merged

refactor duplicate root stripping #100

merged 10 commits into from
Nov 21, 2023

Conversation

amtoine
Copy link
Owner

@amtoine amtoine commented Nov 18, 2023

description

this PR creates two new commands:

  • fs path "path remove-prefix"
  • fs path "path remove-trailing-path-sep"

tests have been added in tests/mod.nu and these two new commands are used to reduce the number of random str replace and str trim in the code.

@amtoine amtoine added the fix A fix for a bug label Nov 18, 2023
@amtoine amtoine self-assigned this Nov 18, 2023
@amtoine amtoine added refactor Changes that just moves code around without altering features and removed fix A fix for a bug labels Nov 19, 2023
@amtoine amtoine added the core Related to the main `nu-git-manager` module label Nov 19, 2023
@amtoine amtoine marked this pull request as ready for review November 19, 2023 15:07
this should solve the merge conflict in #100.
@amtoine amtoine merged commit 7d30c11 into main Nov 21, 2023
4 checks passed
@amtoine amtoine deleted the fix-78 branch November 21, 2023 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to the main `nu-git-manager` module refactor Changes that just moves code around without altering features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor duplicate root stripping
1 participant