Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPull Request inline comment appears on GitHub.com but not in extension #1469
Comments
|
Here's a hacked version of The selected lined below have been added. Even with this patched version I can't add a comment on that line. I'll double check the fix and see if I'm missing something.
You can see the difference by doing:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment








What happened (with steps, logs and screenshots, if possible)
IPullRequestSessionManager.csfrom PR details viewDiagnosis
It appears the issue caused a dependency in the use of the
git diff --indent-heuristicoption. GitHub.com uses this but command line and libgit2 doesn't use it by default.You can see the difference in the output from the following commands (on the
github/VisualStudiorepo):See here for when it was introduced:
github/c2c-workflows#483
Fix
The
--indent-heuristicoption is available in libgit:https://github.com/libgit2/libgit2/blob/da8138b01217824cf211fa491608a7b067cf8e43/include/git2/diff.h#L134
But isn't currently available in libgit2sharp.
https://github.com/libgit2/libgit2sharp/blob/master/LibGit2Sharp/Core/GitDiff.cs#L191
Needs to learn about the new flag.
https://github.com/libgit2/libgit2sharp/blob/3f9b415fa1edfc31ce1ec2b4b3d18441c34adfff/LibGit2Sharp/Diff.cs#L21
Needs to know to set it.
We would need a
DiffModifiers.IndentHeuristicboolIf you have a
GitDiffOptionsthen you can turn on bit(1 << 31)of theFlags(which unfortunately we don't have access to). See libgit2/libgit2@7e3faf5@ethomson said he might have a chance to tackle this on on a long flight tomorrow. It would be very much appreciated if he was able to!😃
Update: it looks like this has changed to
GIT_DIFF_INDENT_HEURISTIC = (1u << 18)in recent versions.libgit2/libgit2@2d9d246