author | Junio C Hamano <gitster@pobox.com> | |
Thu, 14 Jul 2011 01:57:42 +0000 (18:57 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 14 Jul 2011 04:58:21 +0000 (21:58 -0700) | ||
commit | bf979c07c728b9d4f2691a023b3f358610808789 | |
tree | b0fe9d950219e9e765355c3d57f95e83ee429aee | tree | snapshot |
parent | fe549c21fc3d99b9ff66f03d192f955400c80191 | commit | diff |
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>
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 | diff | blob | history |