]> git.ipfire.org Git - thirdparty/git.git/commit - diff.h
diff.c: remove implicit dependency on the_index
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 21 Sep 2018 15:57:24 +0000 (17:57 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Sep 2018 16:48:10 +0000 (09:48 -0700)
commite675765235001c382ba30d336bb69618296c012b
treed6a5cb53c2238c67f3569fa6512618d86ae48403
parent38bbc2ea39372ce1b7eb494b31948f4a8a903f88
diff.c: remove implicit dependency on the_index

A new variant repo_diff_setup() is added that takes 'struct repository *'
and diff_setup() becomes a thin macro around it that is protected by
NO_THE_REPOSITORY_COMPATIBILITY_MACROS, similar to NO_THE_INDEX_....
The plan is these macros will always be defined for all library files
and the macros are only accessible in builtin/

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
15 files changed:
Documentation/technical/api-diff.txt
blame.c
builtin/diff.c
builtin/log.c
builtin/merge.c
builtin/range-diff.c
diff-no-index.c
diff.c
diff.h
merge-recursive.c
notes-merge.c
patch-ids.c
read-cache.c
revision.c
tree-diff.c