Skip to content
  • Han-Wen Nienhuys's avatar
    Modify pseudo refs through ref backend storage · 09743417
    Han-Wen Nienhuys authored and Junio C Hamano's avatar Junio C Hamano committed
    The previous behavior was introduced in commit 74ec19d4
    
    
    ("pseudorefs: create and use pseudoref update and delete functions",
    Jul 31, 2015), with the justification "alternate ref backends still
    need to store pseudorefs in GIT_DIR".
    
    Refs such as REBASE_HEAD are read through the ref backend. This can
    only work consistently if they are written through the ref backend as
    well. Tooling that works directly on files under .git should be
    updated to use git commands to read refs instead.
    
    The following behaviors change:
    
    * Updates to pseudorefs (eg. ORIG_HEAD) with
      core.logAllRefUpdates=always will create reflogs for the pseudoref.
    
    * non-HEAD pseudoref symrefs are also dereferenced on deletion. Update
      t1405 accordingly.
    
    Signed-off-by: default avatarHan-Wen Nienhuys <hanwen@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    09743417