diff options
author | David Turner <dturner@twopensource.com> | 2015-11-10 11:42:39 (GMT) |
---|---|---|
committer | Jeff King <peff@peff.net> | 2015-11-20 09:52:01 (GMT) |
commit | 5f3c3a4e6f11dedad93d9f5bb2caa85c684db54a (patch) | |
tree | e83ce9f7866a76a2aba084b794635bf37641df85 /refs/refs-internal.h | |
parent | eb33876c262bec79a127b82a3a853ad00665d894 (diff) | |
download | git-5f3c3a4e6f11dedad93d9f5bb2caa85c684db54a.zip git-5f3c3a4e6f11dedad93d9f5bb2caa85c684db54a.tar.gz git-5f3c3a4e6f11dedad93d9f5bb2caa85c684db54a.tar.bz2 |
files_log_ref_write: new function
Because HEAD and stash are per-worktree, every refs backend needs to
go through the files backend to write these refs.
So create a new function, files_log_ref_write, and add it to
refs/refs-internal.h. Later, we will use this to handle reflog updates
for per-worktree symbolic refs (HEAD).
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'refs/refs-internal.h')
-rw-r--r-- | refs/refs-internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h index 9077c11..7b6c8bc 100644 --- a/refs/refs-internal.h +++ b/refs/refs-internal.h @@ -177,4 +177,8 @@ struct ref_transaction { enum ref_transaction_state state; }; +int files_log_ref_write(const char *refname, const unsigned char *old_sha1, + const unsigned char *new_sha1, const char *msg, + int flags, struct strbuf *err); + #endif /* REFS_REFS_INTERNAL_H */ |