]> Kevux Git Server - rit/commit
rev-list: move `show_commit()` to the bottom
authorKarthik Nayak <karthik.188@gmail.com>
Thu, 26 Oct 2023 10:11:08 +0000 (12:11 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Nov 2023 03:07:18 +0000 (12:07 +0900)
commitb49529230d512c9a9551e064e3181bc8c1264880
treedd6a0f81e380d598ddb5fcab364d47eb6b8b4382
parentca556f47076932a07590c62aad772cfc89491614
rev-list: move `show_commit()` to the bottom

The `show_commit()` function already depends on `finish_commit()`, and
in the upcoming commit, we'll also add a dependency on
`finish_object__ma()`. Since in C symbols must be declared before
they're used, let's move `show_commit()` below both `finish_commit()`
and `finish_object__ma()`, so the code is cleaner as a whole without the
need for declarations.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rev-list.c