Skip to content

Conversation

@garimasi514
Copy link
Owner

Thanks for taking the time to contribute to Git!

Those seeking to contribute to the Git for Windows fork should see
http://gitforwindows.org/#contribute on how to contribute Windows specific
enhancements.

If your contribution is for the core Git functions and documentation
please be aware that the Git community does not use the github.com issues
or pull request mechanism for their contributions.

Instead, we use the Git mailing list (git@vger.kernel.org) for code and
documenatation submissions, code reviews, and bug reports. The
mailing list is plain text only (anything with HTML is sent directly
to the spam folder).

Nevertheless, you can use GitGitGadget (https://gitgitgadget.github.io/)
to conveniently send your Pull Requests commits to our mailing list.

Please read the "guidelines for contributing" linked above!

@garimasi514 garimasi514 changed the title Bloom vs version WIP: Requires cleanup and preparing for the mailing list. Bloom vs version Dec 12, 2019
@garimasi514 garimasi514 changed the title WIP: Requires cleanup and preparing for the mailing list. Bloom vs version WIP: Requires cleanup and preparing for the mailing list. Bloom Filters Dec 12, 2019
Copy link
Collaborator

@derrickstolee derrickstolee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got some comments for you.

Comment on lines 68 to 34
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead, focus on comparing the output from git log with and without the commit-graph using -c core.commitGraph=false.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(i.e. drop this part, and I'll comment later about what to do.)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for file in file1 file2 file3
do
    git log --oneline -- $file >actual &&
    git -c core.commitGraph=false log --oneline -- $file >expect &&
    test_cmp expect actual
done

…hanged paths between a commit and its first interesting parent

static inline uint64_t get_bitmask(uint32_t pos)
{
return 1UL << (pos & (BITS_PER_BLOCK - 1));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This 1UL bothers me for a ui64 return type. On a 32-bit machine, this doesn't work as expected, since UL is 32 bits.
I'd suggest something like return ((uint64_t)1) << (pos & (BITS_PER_BLOCK - 1)); or maybe

uint64_t v = 1;
return v << (pos & (BITS_PER_BLOCK - 1));

and avoid the UL vs ULL mess.

garimasi514 pushed a commit that referenced this pull request Jan 6, 2020
@garimasi514 garimasi514 deleted the bloomVSVersion branch January 15, 2020 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants