Skip to content

Commit

Permalink
revisions: split handle_revision_opt() from setup_revisions()
Browse files Browse the repository at this point in the history
Add two fields to struct rev_info:

 - .def to store --default argument; and
 - .show_merge 1-bit field.

handle_revision_opt() is able to deal with any revision option, and
consumes them, and leaves revision arguments or pseudo arguments
(like --all, --not, ...) in place.

For now setup_revisions() does a pass of handle_revision_opt() again
so that code not using it in a parse-opt parser still work the same.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Pierre Habouzit authored and Junio C Hamano committed Jul 8, 2008
1 parent 8bb6588 commit 02e5422
Show file tree
Hide file tree
Showing 2 changed files with 226 additions and 326 deletions.
Loading

0 comments on commit 02e5422

Please sign in to comment.