merge-ort: add a special minimal index just for renormalization
authorElijah Newren <newren@gmail.com>
Sat, 20 Mar 2021 00:03:45 +0000 (00:03 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 20 Mar 2021 19:35:40 +0000 (12:35 -0700)
commitea305a68fd7427f84f90709e598624341f5627c8
treebfe2a9fe50a6cb4e4868a9c679642d1a3c7c3a34
parent72b3091040f8d2784225527ebecfc3c2a56fe196
merge-ort: add a special minimal index just for renormalization

renormalize_buffer() requires an index_state, which is something that
merge-ort does not operate with.  However, all the renormalization code
needs is an index with a .gitattributes file...plus a little bit of
setup.  Create such an index, along with the deallocation and
attr_direction handling.

A subsequent commit will add a function to finish the initialization
of this index.

Signed-off-by: Elijah Newren <newren@gmail.com>
Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-ort.c