add methods to get diff of staged and pending modifications