diff options
author | Ronnie Sahlberg <sahlberg@google.com> | 2014-06-20 07:42:44 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-14 11:54:40 -0700 |
commit | f1c9350ad784eca97184b73973fad353baa99a1d (patch) | |
tree | 17a7432e66a56d24eaf749cbcbd72cac0cf10945 /t/t5515/fetch.br-remote-explicit-merge_remote-explicit | |
parent | refs.c: ref_transaction_commit should not free the transaction (diff) | |
download | tgif-f1c9350ad784eca97184b73973fad353baa99a1d.tar.xz |
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 <jrnieder@gmail.com>
Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Michael Haggerty <mhagger@alum.mit.edu>
Diffstat (limited to 't/t5515/fetch.br-remote-explicit-merge_remote-explicit')
0 files changed, 0 insertions, 0 deletions