From 659cf2029f322ea876d663d85783b48945227e8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Wed, 7 Jan 2015 12:23:05 +0000 Subject: Remove the signature from ref-modifying functions The signature for the reflog is not something which changes dynamically. Almost all uses will be NULL, since we want for the repository's default identity to be used, making it noise. In order to allow for changing the identity, we instead provide git_repository_set_ident() and git_repository_ident() which allow a user to override the choice of signature. --- examples/network/fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/network/fetch.c b/examples/network/fetch.c index adde73c17..a4bec032e 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -156,7 +156,7 @@ int fetch(git_repository *repo, int argc, char **argv) // right commits. This may be needed even if there was no packfile // to download, which can happen e.g. when the branches have been // changed but all the needed objects are available locally. - if (git_remote_update_tips(remote, NULL, NULL) < 0) + if (git_remote_update_tips(remote, NULL) < 0) return -1; git_remote_free(remote); -- cgit v1.2.1