Skip to content

how to debug git-lfs source code #5691

Answered by chrisd8088
aylwynlake asked this question in Q&A
Discussion options

You must be logged in to vote

As far as analyzing the sequence of events during a git clone, you might try using the GIT_TRACE=1 environment variable (i.e., GIT_TRACE=1 git clone, if you're using Linux or macOS). The GIT_TRANSFER_TRACE=1 and GIT_CURL_VERBOSE=1 variables can also provide additional information.

What you are likely to encounter is that with Git LFS configured, Git will run the git lfs filter-process command to "smudge" the blobs as they are populated in your working tree, meaning download the Git LFS objects corresponding to any Git blobs which are Git LFS pointers. You can find the source code for that command in the commands/command_filter_process.go file.

Before you go to the trouble of implementing …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@aylwynlake
Comment options

Answer selected by aylwynlake
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants