]> git.ipfire.org Git - thirdparty/git.git/commit - wt-status.c
wt-status: replace sha1 mentions with oid
authorMartin Ågren <martin.agren@gmail.com>
Sun, 27 Sep 2020 13:15:41 +0000 (15:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 27 Sep 2020 21:21:47 +0000 (14:21 -0700)
commitb1f1ade87be595b5854c82850658c80465fdb16b
treeab0476e0d51c98e169951a183edd3a02456ac49c
parent3a238e539bcdfe3f9eb5010fd218640c1b499f7a
wt-status: replace sha1 mentions with oid

`abbrev_sha1_in_line()` uses a `struct object_id oid` and should be
fully prepared to handle non-SHA1 object ids. Rename it to
`abbrev_oid_in_line()`.

A few comments in `wt_status_get_detached_from()` mention "sha1". The
variable they refer to was renamed in e86ab2c1cd ("wt-status: convert to
struct object_id", 2017-02-21). Update the comments to reference "oid"
instead.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wt-status.c