checkout: split off a function to peel away branchname arg
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 8 Feb 2011 10:29:09 +0000 (04:29 -0600)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Feb 2011 19:14:25 +0000 (11:14 -0800)
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 <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found