Skip to content
Discussion options

You must be logged in to vote

Do you have the repo rather than the worktree? If so you could try (untested code written here):

	to = object.NewTreeRootNode(t)

	idx, err := repo.Storer.Index()
	if err != nil {
		return nil, err
	}
	// mindex is utils/merkletrie/index
	from := mindex.NewRootNode(idx)

	changes, err := merkletrie.DiffTree(from, to, diffTreeIsEquals)

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@aslakhellesoy
Comment options

Comment options

You must be logged in to vote
5 replies
@aslakhellesoy
Comment options

@AriehSchneier
Comment options

@AriehSchneier
Comment options

@aslakhellesoy
Comment options

@AriehSchneier
Comment options

Answer selected by vincentfiestada
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants