]> git.ipfire.org Git - thirdparty/git.git/commit - diffcore.h
diffcore-order: export generic ordering interface
authorKirill Smelkov <kirr@mns.spb.ru>
Mon, 20 Jan 2014 16:20:38 +0000 (20:20 +0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Feb 2014 22:44:57 +0000 (14:44 -0800)
commit1df4320fa25d3784b035936b35725460d46f1ca0
tree074a560e2d628a43fe6b41d4228e6031cdafef66
parent7146e66f0861c720f9b32dc9d80ab80495a33e43
diffcore-order: export generic ordering interface

diffcore_order() interface only accepts a queue of `struct
diff_filepair`.

In the next patches, we'll want to order `struct combine_diff_path`
by path, so let's first rework diffcore-order to also provide
generic low-level interface for ordering arbitrary objects, provided
they have path accessors.

The new interface is:

    - `struct obj_order`    for describing objects to ordering routine, and
    - order_objects()       for actually doing the ordering work.

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diffcore-order.c
diffcore.h