commit-graph: don't peek into `struct lock_file`
commita52cdce936fe473429bd4354079f03c3fb0234e9
authorMartin Ågren <martin.agren@gmail.com>
Tue, 5 Jan 2021 19:23:47 +0000 (5 20:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jan 2021 21:53:32 +0000 (6 13:53 -0800)
treedfb7e99670be27b5e2f8b3209d744ce1e3647ba8
parentd4a497664875c84c4ab8318625bb8881508ac18a
commit-graph: don't peek into `struct lock_file`

Similar to the previous commit, avoid peeking into the `struct
lock_file`. Use the lock file API instead.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c