diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-11-05 11:42:01 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-06 04:31:07 +0300 |
commit | b0ca411051d8444b4b32bda3fdd0aba871035d2a (patch) | |
tree | 2779711b5a80992093cec81b77d9edfb73f97f29 /refs.h | |
parent | ff08e56cde739152a59a86f5aa996954a2ec0614 (diff) |
files_transaction_prepare(): don't leak flags to packed transaction
The files backend uses `ref_update::flags` for several internal flags.
But those flags have no meaning to the packed backend. So when adding
updates for the packed-refs transaction, only use flags that make
sense to the packed backend.
`REF_NODEREF` is part of the public interface, and it's logically what
we want, so include it. In fact it is actually ignored by the packed
backend (which doesn't support symbolic references), but that's its
own business.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
0 files changed, 0 insertions, 0 deletions