]> granicus.if.org Git - git/commit
fsck: refactor how to describe objects
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 17 Jul 2016 10:59:44 +0000 (12:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Jul 2016 18:35:00 +0000 (11:35 -0700)
commit993a21b0a05bf2e2063c58e5722c29f5747e39d4
tree493f4ec0152a28e480f24718d8ff795b46d63aeb
parent79ed43c28f626a4e805f350a77c54968b59be6e9
fsck: refactor how to describe objects

In many places, we refer to objects via their SHA-1s. Let's abstract
that into a function.

For the moment, it does nothing else than what we did previously: print
out the 40-digit hex string. But that will change over the course of the
next patches.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsck.c