Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH v2 3/3] checkout: reorder option handling

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:54:36

Nguyễn Thái Ngọc Duy  [off-list ref] writes:
+	if (opts.patch_mode || opts.pathspec)
+		return cmd_checkout_entry(&opts, &new);
+	else
+		return cmd_switch(&opts, &new);
 }
Yeah, patch_mode is really part of checking out paths, so separating
the actions into two makes sense.

Even though I am not sure about "cmd_" prefix (as these are not
commands), I'll rename the former "cmd_checkout_paths" to be
consistent with the underlying checkout_paths() function, and the.
latter "cmd_checkout_branch" for consistency with the former (you
either check out one-or-more paths, or check out a branch).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help