From: Jeff King Date: Thu, 21 May 2015 04:45:28 +0000 (-0400) Subject: remote.c: introduce branch_get_upstream helper X-Git-Tag: v2.5.0-rc0~55^2~9 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a9f9f8cc1f59104257eb1a11a2d048f54dd92ee6?hp=a9f9f8cc1f59104257eb1a11a2d048f54dd92ee6 remote.c: introduce branch_get_upstream helper All of the information needed to find the @{upstream} of a branch is included in the branch struct, but callers have to navigate a series of possible-NULL values to get there. Let's wrap that logic up in an easy-to-read helper. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---