Detect Difference Between Two Commits
We currently only support opening the repository and telling the user it's location, shown in the video below:
Screencast_from_05-17-2020_06_42_54_PM
We need to add a new behaviour for the DiffView UI:
- Add two
GtkEntry
objects that accepts the commits hashes as input - Add a new
GtkButton
Object to issue the detecting command - Add a new
GtkTextView
Object to preview the difference between the two commits
We first need to understand the basic structure of the Commit, and Diff class in libgit2-glib
, and we need to know how to extract the information from the Diff after getting it from Diff.tree_to_tree()
method