-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Convert to markdown: cpp_extension.rst, cpp_index.rst, cpu.rst, cuda_environment_variables.rst, cuda._sanitizer.rst #155110
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/155110
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 0a519e5 with merge base 178515d ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@@ -0,0 +1,44 @@ | |||
# C++ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use git mv
to convert to .md instead of deleting the .rst file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it's git mv
and then update content, not sure why showing delete & add
in here, let me find out. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its due to how Git works internally. If too many lines in a file is changed Git won't find similarity between 2 files so doesn't show that they were renamed. Git doesn't actually store the history of changes in its database but rather the state of the entire workspace. I tried to explain it here hopefully it helps explain but this is expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks you for help! Here's a similar explanation:
- Git does not explicitly track moves/renames.
- It detects them by comparing the content of deleted files with newly added files within the same commit.
- If the content similarity exceeds a certain threshold (defaulting to 50%), Git assumes the file was renamed or moved.
So, if lines changes over threshold, it treated as delete & add
, I think is unavoidable for some files transfer from .rst
to md
. The file history still preserved even displayed as delete & add
, it's consistent with the purpose of using git mv
.
17f4c25
to
d1ecd68
Compare
Hi @svekars, please help review the change when available, thanks! |
@pytorchbot rebase -b main |
@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here |
Successfully rebased |
49d3f3f
to
e651e11
Compare
…environment_variables.rst, cuda._sanitizer.rst
e651e11
to
0a519e5
Compare
Fixes #155015
Test Result
cc @svekars @sekyondaMeta @AlannaBurke