libgit2/php-git

Diff for commits and branches?

dubcanada opened this issue · 5 comments

Hello,

Is there a method for diffing between commits or branches?

  • Steve

Not yet. I'll plan to add diff API.

Excellent! I can't wait to change over from git cli to libgit for diffs!

sorry for late response. my job is killing me :shipit:

I'll take a look into this feature in this week end.

No problem take your time. If I knew what I was doing with C <> PHP I could do it, but sadly I have no idea +_+

I've added Git2\Repository::diff($tree1, $tree2) feature. you can parse this output easily.

If I knew what I was doing with C <> PHP I could do it, but sadly I have no idea +_+
if you want to know that. this book is the best i think :)

http://www.amazon.com/dp/067232704X