-
-
Notifications
You must be signed in to change notification settings - Fork 339
Outdated broken links from documentation into code #1627
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
Comments
This updates the "git_cmp_c" and "git_cmp_rs" links in the `gix_diff::tree::function::diff` documentation comment. - The significant change is to the "git_cmp_rs" link (the second link), which accounts for how files have renamed and how code has been moved, and also changed in GitoxideLabs#849 to fix issue GitoxideLabs#848. This hyperlink change completes the third task listed in GitoxideLabs#1627. - The other change is to update the "git_cmp_c" link at the same time. That code has not changed, and this is just referring to a later commit (the current tip of the master branch in git/git). The reason to also do this change is to make it easier to verify, both now and for anyone reading the documentation, that that link remains current.
Thanks a lot for collecting this information!
I am not aware of any shortcomings anymore regarding ref-deltas, so I think I can safely say that bullet-point can be removed.
Yes, I think so. Initially there was an implementation that would try to be very smart, but since it was replaced by something much simpler. Overall, I think that |
This removes two items that are obsolete or effectively completed due to subsequent design changes, and whose links were broken, in `crate-status.md` and `general-tasks.md`. It also adds a note to `general-tasks.md` that it may be outdated. These changes are based on the discussion in GitoxideLabs#1627 and specifically GitoxideLabs#1627 (comment).
Thanks. Based on this, I've opened #1631 for the rest. |
How does the overall situation with |
Since |
Current behavior 😯
There were three broken links found while working on #1624 that I didn't include fixes for in 65f69f7 because there was no clear best way to fix them. For two of them, which will probably require updating planning information. I am not at all sure what should be done, though I've tried to suggest broad possibilities. Those are the ones that motivate this issue. For the third, I'm pretty sure what the correct fix is and I'll go ahead and open a PR for it, but I've included it here as well so it can be easily reviewed.
Please note that the broken links described in this issue were effectively unaffected by the change of
Byron/gitoxide
toGitoxideLabs/gitoxide
in 64ff0a7: although that part of their URLs changed, they were broken in exactly the same way both before and after that change to their URLs.In
crate-status.md
That link is a 404, because it specifies a
gix-pack
path at a commit beforegit-pack
was renamed togix-pack
:gitoxide/crate-status.md
Line 232 in 795962b
Changing the path back to
git-path
gives:gitoxide/git-pack/src/cache/delta/from_offsets.rs
Lines 101 to 105 in 8f9a55b
With more context, this is:
gitoxide/git-pack/src/cache/delta/from_offsets.rs
Lines 100 to 110 in 8f9a55b
But the code comment, which
crate-status.md
links to, went away in 84ade1d. The commit message there is:So maybe the item in
crate-status.md
is (partially?) completed or otherwise should be revised?In
general-tasks.md
That link is a 404, both because it specifies
gix-odb
at a commit beforegit-odb
was renamed togix-odb
, and because the structure and content of the crate has changed such that I am not sure if any corresponding code still exists:gitoxide/general-tasks.md
Lines 15 to 19 in 795962b
Changing the path back to
git-odb
gives:gitoxide/git-odb/src/store/linked/find.rs
Line 33 in 2958145
With more context, this is:
gitoxide/git-odb/src/store/linked/find.rs
Lines 11 to 14 in 2958145
gitoxide/git-odb/src/store/linked/find.rs
Line 22 in 2958145
gitoxide/git-odb/src/store/linked/find.rs
Lines 32 to 35 in 2958145
As far as I can tell, this went away without being replaced by anything equivalent in 8c5ae77:
So maybe this item should be removed (or heavily revised?) from
general-tasks.md
?In
gix-diff/src/tree/function.rs
The
git_cmp_rs
link in thegix_diff::tree::function::diff
function's documentation comment is a 404, because it specifies agix-object
path at a commit beforegit-object
was renamed togix-object
, and because the crate has been substantially reorganized:gitoxide/gix-diff/src/tree/function.rs
Line 18 in 795962b
gitoxide/gix-diff/src/tree/function.rs
Line 27 in 795962b
Changing the path back to
git-object
gives:gitoxide/git-object/src/mutable/tree.rs
Lines 52 to 55 in a4d5f99
With more context, this is:
gitoxide/git-object/src/mutable/tree.rs
Lines 50 to 56 in a4d5f99
This changed substantially in ca37915 (#849). The comment went away, and the implementation was modified to fix #848. Although some code has moved around in the module, that implementation remains today:
gitoxide/gix-object/src/tree/mod.rs
Lines 263 to 273 in 795962b
I'll open a PR that changes the
git_cmp_rs
link in thegix_diff::tree::function::diff
documentation comment to point there. [Edit: I've opened #1628 for this.]Expected behavior 🤔
I think references to code should either be current or otherwise that their significance to future development should be clear. For this reason, even though all links work when
gix-*
is changed back togit-*
, I did not make any such changes in #1624 and I am not recommending them here, since it would then not be obvious how the text referencing the code ought to be understood.Git behavior
Not applicable.
Steps to reproduce 🕹
See above.
The text was updated successfully, but these errors were encountered: