• J
    branch -m/-M: remove undocumented RENAMED-REF · b0eab01a
    Junio C Hamano 提交于
    The commit message for c976d415 (git-branch: add options and tests for
    branch renaming, 2006-11-28) mentions RENAME_REF but otherwise this is not
    documented anywhere, and it does not appear in any of the tests.
    
    Worse yet, the name of the actual file is "RENAMED-REF".
    
    This was supposed to hold the commit object name at the tip of the branch
    the most recent "branch -m/-M" renamed, but that is not necessary in order
    to be able to recover from a mistake. Even when "branch -M A B" overwrites
    an existing branch B, what is kept in RENAMED-REF is the commit at the tip
    of the original branch A, not the commit B from the now-lost branch.
    
    Just remove this unused "feature".
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    b0eab01a
refs.c 25.6 KB