refs.c: constify the sha arguments for ref_transaction_create|delete|update
authorRonnie Sahlberg <redacted>
Fri, 20 Jun 2014 14:42:44 +0000 (07:42 -0700)
committerJunio C Hamano <redacted>
Mon, 14 Jul 2014 18:54:40 +0000 (11:54 -0700)
commitf1c9350ad784eca97184b73973fad353baa99a1d
tree17a7432e66a56d24eaf749cbcbd72cac0cf10945
parent33f9fc593247322ddea5515f548a06cf34d12c2f
refs.c: constify the sha arguments for ref_transaction_create|delete|update

ref_transaction_create|delete|update has no need to modify the sha1
arguments passed to it so it should use const unsigned char* instead
of unsigned char*.

Some functions, such as fast_forward_to(), already have its old/new
sha1 arguments as consts. This function will at some point need to
use ref_transaction_update() in which case this change is required.

Reviewed-by: Jonathan Nieder <redacted>
Signed-off-by: Ronnie Sahlberg <redacted>
Signed-off-by: Junio C Hamano <redacted>
Acked-by: Michael Haggerty <redacted>
refs.c
refs.h
git clone https://git.99rst.org/PROJECT