Replaced explicit calls to Grit's native method (diff, log, ls_tree) with calls to abstraction layer.