how to debug git-lfs source code #5691
-
When I execute the I intend to develop a custom transfer agent. My requirement is as follows: when I execute |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
As far as analyzing the sequence of events during a What you are likely to encounter is that with Git LFS configured, Git will run the Before you go to the trouble of implementing anything in code, though, you might investigate whether the |
Beta Was this translation helpful? Give feedback.
-
for someone who want to debug git-lfs code, it's very simple. |
Beta Was this translation helpful? Give feedback.
As far as analyzing the sequence of events during a
git clone
, you might try using theGIT_TRACE=1
environment variable (i.e.,GIT_TRACE=1 git clone
, if you're using Linux or macOS). TheGIT_TRANSFER_TRACE=1
andGIT_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 thecommands/command_filter_process.go
file.Before you go to the trouble of implementing …