Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

add the attribute to show the number of deltas/patches in one diff #281

Merged
merged 2 commits into from Nov 1, 2013

Conversation

Projects
None yet
2 participants

diff.size returns the number of deltas/patches of one diff

Member

jdavid commented Oct 31, 2013

Since we have an iterator for patch in diff, it would be better to implement the length function, so it reads len(diff)

Member

jdavid commented Oct 31, 2013

...instead of diff.size

alexband commented Nov 1, 2013

@jdavid yes definitely better, see c0b1ab9

@jdavid jdavid merged commit c0b1ab9 into libgit2:master Nov 1, 2013

1 check passed

default The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment