626 (b'', b'format', b'', b''), |
626 (b'', b'format', b'', b''), |
627 (b'', b'oneline', None, b''), |
627 (b'', b'oneline', None, b''), |
628 (b'', b'stat', None, b''), |
628 (b'', b'stat', None, b''), |
629 (b'', b'graph', None, b''), |
629 (b'', b'graph', None, b''), |
630 (b'p', b'patch', None, b''), |
630 (b'p', b'patch', None, b''), |
631 ] |
631 (b'G', b'grep-diff', b'', b''), |
632 args, opts = parseoptions(ui, cmdoptions, args) |
632 (b'S', b'pickaxe-regex', b'', b''), |
|
633 ] |
|
634 args, opts = parseoptions(ui, cmdoptions, args) |
|
635 grep_pat = opts.get(b'grep_diff') or opts.get(b'pickaxe_regex') |
|
636 if grep_pat: |
|
637 cmd = Command(b'grep') |
|
638 cmd[b'--diff'] = grep_pat |
|
639 ui.status(b'%s\n' % bytes(cmd)) |
|
640 return |
|
641 |
633 ui.status( |
642 ui.status( |
634 _( |
643 _( |
635 b'note: -v prints the entire commit message like Git does. To ' |
644 b'note: -v prints the entire commit message like Git does. To ' |
636 b'print just the first line, drop the -v.\n\n' |
645 b'print just the first line, drop the -v.\n\n' |
637 ) |
646 ) |