mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Merge branch 'ps/reflog-migrate-fixes'
"git refs migrate" to migrate the reflog entries from a refs backend to another had a handful of bugs squashed. * ps/reflog-migrate-fixes: refs: fix invalid old object IDs when migrating reflogs refs: stop unsetting REF_HAVE_OLD for log-only updates refs/files: detect race when generating reflog entry for HEAD refs: fix identity for migrated reflogs ident: fix type of string length parameter builtin/reflog: implement subcommand to write new entries refs: export `ref_transaction_update_reflog()` builtin/reflog: improve grouping of subcommands Documentation/git-reflog: convert to use synopsis type
This commit is contained in:
@@ -662,7 +662,8 @@ enum ref_transaction_error ref_update_check_old_target(const char *referent,
|
||||
|
||||
/*
|
||||
* Check if the ref must exist, this means that the old_oid or
|
||||
* old_target is non NULL.
|
||||
* old_target is non NULL. Log-only updates never require the old state to
|
||||
* match.
|
||||
*/
|
||||
int ref_update_expects_existing_old_ref(struct ref_update *update);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user