]> git.ipfire.org Git - thirdparty/git.git/commit - diff-lib.c
diff-lib: refactor run_diff_index() and do_diff_cache()
authorJunio C Hamano <gitster@pobox.com>
Thu, 14 Jul 2011 01:57:42 +0000 (18:57 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Jul 2011 04:58:21 +0000 (21:58 -0700)
commitbf979c07c728b9d4f2691a023b3f358610808789
treeb0fe9d950219e9e765355c3d57f95e83ee429aee
parentfe549c21fc3d99b9ff66f03d192f955400c80191
diff-lib: refactor run_diff_index() and do_diff_cache()

The latter is meant to be an API for internal callers that want to inspect
the resulting diff-queue, while the former is an implementation of "git
diff-index" command. Extract the common logic into a single helper
function and make them thin wrappers around it.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-lib.c