Skip to content
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

Use Index.add_entry_with_custom_stat... #893

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

olsen232
Copy link
Collaborator

to greatly increase efficiency during LFS working copy checkout.
Without this change, the step of building the index during
the working copy checkout will take a long time as it hashes
all the LFS tiles that have been checked out.

Related links:

#880

Checklist:

  • Have you reviewed your own change?
  • Existing tests pass
  • Have you updated the changelog?

@olsen232 olsen232 requested a review from craigds July 28, 2023 01:36
to greatly increase efficiency during LFS working copy checkout.
Without this change, the step of building the index during
the working copy checkout will take a long time as it hashes
all the LFS tiles that have been checked out.
@olsen232 olsen232 force-pushed the index-add-entry-with-custom-stat branch from 03f7df3 to 4dfaba9 Compare July 28, 2023 01:38
@craigds
Copy link
Member

craigds commented Jul 28, 2023

relevant fork commits:

@@ -426,6 +460,8 @@ def update_file_diffs(self, base_tree, target_tree):
blob_data = repo[file_delta.new.value].data
new_path.write_bytes(blob_data)

# TODO: update workdir_index.
Copy link
Member

Choose a reason for hiding this comment

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

planning to do that in this PR?

@olsen232 olsen232 merged commit 2ea2d07 into master Jul 31, 2023
32 checks passed
@olsen232 olsen232 deleted the index-add-entry-with-custom-stat branch July 31, 2023 21:09
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.

2 participants