author | Jonathan Nieder <jrnieder@gmail.com> | |
Tue, 8 Feb 2011 10:29:09 +0000 (04:29 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 8 Feb 2011 19:14:25 +0000 (11:14 -0800) | ||
commit | 09ebad6faeec11c3dbad0bdaf95faed57be5dcba | |
tree | 0b99f3e776457c30af4953e55e7c7c2eadc85194 | tree | snapshot |
parent | 0cb6ad3c3d8e9c738686ef8dc6f173f725e509bc | commit | diff |
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 <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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>
builtin/checkout.c | diff | blob | history |