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
Get diff / patch list from commit #1838
Comments
FYI - I've seen #1754. This is different, since it also contains data on which files were moved to where, deleted, etc... |
diff is out of scope for this library. But if you want you can implement something like this and share it with others. |
What is the scope of this library, exactly? To me, this seems like the closest thing to a scope this project has:
As this project currently stands, it is not a suitable replacement for a library like |
There are whole libraries whose only purpose is to create diff between files. So I don't see a reason to add diff to this library. You can use jsDiff to implement the patches, you don't even need to do anything in isomorphic-git itself. You can just write the code in user space. |
See my follow-up comment:
I'm asking for the data that git itself provides about things like "which files were created, modified, or deleted" in any given commit! |
Oh, you have statusMatrix that does this. |
Pretty simple: a command that generates a list of diffs and/or patches, a la
nodegit
'scommit.getDiff()
ordiff.patches()
.The text was updated successfully, but these errors were encountered: