8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
git_diff_find_similar
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
To reproduce, please check out the chromium repo and show the commit id 0aee4434a4dba42a42abaea9bfbc0cd196a63bc1.
With the git command:
git
$ time git show 0aee4434a4dba42a42abaea9bfbc0cd196a63bc1 >/dev/null real 0m5.319s user 0m0.000s sys 0m0.015s
and this detects renames correctly.
If I do this in my code:
git_diff_tree_to_tree
git_diff_foreach
and renames are not detected.
I also tried to create on-memory Index and used git_diff_index_to_index instead of git_diff_tree_to_tree, but the result still look similar.
Index
git_diff_index_to_index
I'm new to libgit2, so I may be doing something wrong, but any advice appreciated.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To reproduce, please check out the chromium repo and show the commit id 0aee4434a4dba42a42abaea9bfbc0cd196a63bc1.
With the
git
command:and this detects renames correctly.
If I do this in my code:
git_diff_tree_to_tree
takes 813msgit_diff_find_similar
takes 173s (not ms)git_diff_foreach
takes 20s (not ms)and renames are not detected.
I also tried to create on-memory
Index
and usedgit_diff_index_to_index
instead ofgit_diff_tree_to_tree
, but the result still look similar.I'm new to libgit2, so I may be doing something wrong, but any advice appreciated.
The text was updated successfully, but these errors were encountered: