From: Jonathan Nieder Date: Tue, 8 Feb 2011 10:29:09 +0000 (-0600) Subject: checkout: split off a function to peel away branchname arg X-Git-Tag: v1.7.5-rc0~117^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/09ebad6faeec11c3dbad0bdaf95faed57be5dcba?hp=09ebad6faeec11c3dbad0bdaf95faed57be5dcba checkout: split off a function to peel away branchname arg The code to parse and consume the tree name and "--" in commands such as "git checkout @{-1} -- '*.c'" is intimidatingly long. Split it out into a separate function and make it easier to skip on first reading by making the data it uses and produces more explicit. No functional change intended. Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano ---