]> git.ipfire.org Git - thirdparty/git.git/commit - diff.h
diff-lib: accept option flags in run_diff_index()
authorDenton Liu <liu.denton@gmail.com>
Sun, 20 Sep 2020 11:22:22 +0000 (04:22 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Sep 2020 04:30:26 +0000 (21:30 -0700)
commit4c3fe82ef17a6636c742b95cd292b83b02876e08
tree51656928a889f2b66241301f1ea87e450f6b8bbb
parent308d7a7dc99043c90a9eff6916cad1abe0d473aa
diff-lib: accept option flags in run_diff_index()

In a future commit, we will teach run_diff_index() to accept more
options via flag bits. For now, change `cached` into a flag in the
`option` bitfield. The behaviour should remain exactly the same.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/diff-index.c
builtin/diff.c
diff-lib.c
diff.h