Skip to content
  • Jeff King's avatar
    interpret_branch_name: factor out upstream handling · a39c14af
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    This function checks a few different @{}-constructs. The
    early part checks for and dispatches us to helpers for each
    construct, but the code for handling @{upstream} is inline.
    
    Let's factor this out into its own function. This makes
    interpret_branch_name more readable, and will make it much
    simpler to further refactor the function in future patches.
    
    While we're at it, let's also break apart the refactored
    code into a few helper functions. These will be useful if we
    eventually implement similar @{upstream}-like constructs.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    a39c14af