You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
So to do a "normal" diff I would get my two different *object.Tree instances and use object.DiffTree. However with staged changes I'm unsure of how to get a tree, if it's possible at all. It seems that *index.Index only provides a list of files changed, with no way to get a tree. Is it possible to retrieve a diff/patch describing the changes which have been added in the workspace compared to HEAD (or some other arbitrary commit)?
So to do a "normal" diff I would get my two different
*object.Treeinstances and useobject.DiffTree. However with staged changes I'm unsure of how to get a tree, if it's possible at all. It seems that*index.Indexonly provides a list of files changed, with no way to get a tree. Is it possible to retrieve a diff/patch describing the changes which have been added in the workspace compared to HEAD (or some other arbitrary commit)?