getIndexBlob and getLineDiffs for HEAD^? #19

Open
demian85 opened this Issue Jan 20, 2014 · 2 comments

Projects

None yet

2 participants

@demian85

Hi, is there an easy way to make getIndexBlob / getLineDiffs work with others commits instead of just HEAD?
I'm working on a basic feature for my app that is really difficult to do: amend commit!
I managed to get the list of commited files but now I need the same info returned by those methods to show diff information with pretty line numbers.

Thanks again!

@demian85

EDIT:

I'm still thinking and cannot figure out what the hell I need to implement "amend commit" feature.

It's likely I will need the HEAD of the last commit... so getHeadBlob would be nice too...

@demian85

Finally. I'm pretty sure getLineDiffs() would be great.
With that implementation I could build a nicer gitk to browse and view previous commit changes.

Is it very difficult to code or libgit2 already provides a half cooked method for that?

Thanks!

@probablycorey probablycorey added the bug label Jun 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment