Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

getIndexBlob and getLineDiffs for HEAD^? #19

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

getIndexBlob and getLineDiffs for HEAD^? #19

demian85 opened this issue Jan 20, 2014 · 2 comments
Labels

Comments

@demian85
Copy link

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
Copy link
Author

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
Copy link
Author

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants