php-git icon indicating copy to clipboard operation
php-git copied to clipboard

Diff for commits and branches?

Open dubcanada opened this issue 13 years ago • 5 comments

Hello,

Is there a method for diffing between commits or branches?

  • Steve

dubcanada avatar Oct 16 '12 14:10 dubcanada

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

chobie avatar Oct 18 '12 15:10 chobie

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

dubcanada avatar Oct 30 '12 22:10 dubcanada

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

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

chobie avatar Nov 05 '12 11:11 chobie

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 +_+

dubcanada avatar Nov 10 '12 00:11 dubcanada

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

chobie avatar Nov 11 '12 16:11 chobie