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
The Diff class / type has patch method, which returns patch diff string, of all changes as whole. You can iterate over Diff and get Patch for each changed file. However Patch class does not have patch method, and there is currently no way to get patch diff string for an individual file.
GitPython has in its equivalent of per-file diff information, namely git.diff.Diff (equivalent of pygit2.Patch) method called diff, which returns patch diff string... but without diff headers.
P.S. Could we have some labels to easily distinguish bug reports from feature requests, and so on, please?
The text was updated successfully, but these errors were encountered:
The
Diff
class / type haspatch
method, which returns patch diff string, of all changes as whole. You can iterate overDiff
and getPatch
for each changed file. HoweverPatch
class does not havepatch
method, and there is currently no way to get patch diff string for an individual file.GitPython has in its equivalent of per-file diff information, namely
git.diff.Diff
(equivalent ofpygit2.Patch
) method calleddiff
, which returns patch diff string... but without diff headers.P.S. Could we have some labels to easily distinguish bug reports from feature requests, and so on, please?
The text was updated successfully, but these errors were encountered: