]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs: update ref transactions to use struct object_id
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 15 Oct 2017 22:06:53 +0000 (22:06 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Oct 2017 02:05:50 +0000 (11:05 +0900)
commit89f3bbdd3b1f46a5747aa5618b7742f7b3f2adef
treee8345a55653b4f286a86bde54f44244b4fcc2201
parent6ee18216d8d9ca8f76b01282b36bdf590a64d8fc
refs: update ref transactions to use struct object_id

Update the ref transaction code to use struct object_id.  Remove one
NULL pointer check which was previously inserted around a dereference;
since we now pass a pointer to struct object_id directly through, the
code we're calling handles this for us.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
15 files changed:
branch.c
builtin/clone.c
builtin/commit.c
builtin/fetch.c
builtin/receive-pack.c
builtin/replace.c
builtin/tag.c
builtin/update-ref.c
fast-import.c
refs.c
refs.h
refs/files-backend.c
refs/refs-internal.h
sequencer.c
walker.c