Skip to content

Commit

Permalink
Merge branch 'nd/checkout-option-parsing-fix'
Browse files Browse the repository at this point in the history
The option parsing of "git checkout" had error checking, dwim and
defaulting missing options, all mixed in the code, and issuing an
appropriate error message with useful context was getting harder.
Reorganize the code and allow giving a proper diagnosis when the
user says "git checkout -b -t foo bar" (e.g. "-t" is not a good name
for a branch).

* nd/checkout-option-parsing-fix:
  checkout: reorder option handling
  checkout: move more parameters to struct checkout_opts
  checkout: pass "struct checkout_opts *" as const pointer
  • Loading branch information
Junio C Hamano committed Sep 14, 2012
2 parents 22ce37d + b6312c2 commit b58f3a6
Showing 1 changed file with 158 additions and 116 deletions.
Loading

0 comments on commit b58f3a6

Please sign in to comment.