ref_transaction_update(): die on disallowed flags
authorMichael Haggerty <mhagger@alum.mit.edu>
Sun, 5 Nov 2017 08:42:03 +0000 (09:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Nov 2017 01:31:07 +0000 (10:31 +0900)
commita9bbbcec0d863d719dd4ae39fc2242b32c2008e7
tree6022a8162d7e4d78167a36a5c8bec4454aff2ce9
parentb00f3cfa92d10d7180e6baf01d570eb904b5a592
ref_transaction_update(): die on disallowed flags

Callers shouldn't be passing disallowed flags into
`ref_transaction_update()`. So instead of masking them off, treat it
as a bug if any are set.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c