You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi PyDriller team, thanks for your great package. I am wondering if there is currently a way to retrieve the entire patch string from a Commit object in PyDriller?
My team currently has a use case where we would like to store several artefacts from a commit into our database, including the full patch, in case we want to do our own custom parsing or processing. Reading the most recent version of the docs, I don't think this is currently possible (and honestly when I consider the main point of PyDriller, which IMO is to parse and process the patch info for us, it kind of makes sense that this might not be available). However as we are already using PyDriller, and we are assuming the package must be obtaining and maybe storing the entire patch in some way or another, I'm wondering if there is an some way we can get it from a Commit object, like "commit.patch". I know we can retrieve it using the Git API, or even scraping it from a URL such as "https://github.com/ishepard/pydriller/commit/250391839afcad3320e451c841090ccc69407e94.patch", but it would make it easier to just get it from PyDriller somehow. Thanks!
The text was updated successfully, but these errors were encountered:
Can you please clarify what do you mean with "entire patch string of a Commit"? I assume you refer to the modifications of all the files in the commit.
In that case, you may want to take a look at the ModifiedFile object, which stores information about a file's diff, content before and after the commit, in addition to added and deleted lines.
Hi PyDriller team, thanks for your great package. I am wondering if there is currently a way to retrieve the entire patch string from a Commit object in PyDriller?
My team currently has a use case where we would like to store several artefacts from a commit into our database, including the full patch, in case we want to do our own custom parsing or processing. Reading the most recent version of the docs, I don't think this is currently possible (and honestly when I consider the main point of PyDriller, which IMO is to parse and process the patch info for us, it kind of makes sense that this might not be available). However as we are already using PyDriller, and we are assuming the package must be obtaining and maybe storing the entire patch in some way or another, I'm wondering if there is an some way we can get it from a Commit object, like "commit.patch". I know we can retrieve it using the Git API, or even scraping it from a URL such as "https://github.com/ishepard/pydriller/commit/250391839afcad3320e451c841090ccc69407e94.patch", but it would make it easier to just get it from PyDriller somehow. Thanks!
The text was updated successfully, but these errors were encountered: