tree: update line number when inserting tree entries
view: limit sorting to only the branch and tree view
view: fix comparison of modes when sorting by file name
view: fix number comparision
branch: use reference comparator from refdb module for sorting
diff: Move diff stat addition to a common function

Signed-off-by: Kumar Appaiah <a.kumar@alumni.iitm.ac.in>
diff: Move diff stat drawing to a common function

Signed-off-by: Kumar Appaiah <a.kumar@alumni.iitm.ac.in>
log: Colour the diff stat

This commit adds custom log_read and log_draw functions that utilize
the diff stat drawing functions from the diff module. The absence of
the triple hyphen separator prevents direct usage of the diff drawing
functions directly.

Signed-Off-By: Kumar Appaiah <a.kumar@alumni.iitm.ac.in>