mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
refs: include committer info in ref_update struct
The reference backends obtain the committer information from `git_committer_info(0)` when adding a reflog. The upcoming patches introduce support for migrating reflogs between the reference backends. This requires an interface to creating reflogs, including custom committer information. Add a new field `committer_info` to the `ref_update` struct, which is then used by the reference backends. If there is no `committer_info` provided, the reference backends default to using `git_committer_info(0)`. The field itself cannot be set to `git_committer_info(0)` since the values are dynamic and must be obtained right when the reflog is being committed. Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
df5d7a7ba5
commit
1a83e26d72
@@ -113,6 +113,7 @@ struct ref_update {
|
||||
void *backend_data;
|
||||
unsigned int type;
|
||||
char *msg;
|
||||
char *committer_info;
|
||||
|
||||
/*
|
||||
* If this ref_update was split off of a symref update via
|
||||
|
||||
Reference in New Issue
Block a user