-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Allow override temp file location in git cp
#1090
Comments
PR is welcome! |
@spacewander Would you like a PR from main...MattiasEh:git-extras:main ? That approach avoids the need for a messy temporary file and therefore eliminates the class of problems that includes this issue. It also makes for a cleaner history (at least IMHO) and should affect the original branch atomically. My changes seem to work well for me, but I don't have a great way to test regressions for this fairly significant approach-change. What's the best way to move forward? References: |
@MattiasEh |
Happy to! PR #1169 created. |
Consider solved. |
When running
git cp
it will create a temp file following a certain convention.E.g. running
git cp a/b/c.kt d/e.kt
will create a temp file like this:a__b__c.kt-move-to-d__e.kt
While this behavior works most of the time, it may run into path-too-long error when the src/dest file path is very deep.
Suggestion: allow a third parameter to specify a temp file location override.
The text was updated successfully, but these errors were encountered: