diff hgext/githelp.py @ 45181:28163c5de797 stable 5.5rc0

merge default into stable for 5.5rc0
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 20 Jul 2020 21:56:27 +0530
parents 94f227baa76f
children 89a2afe31e82
line wrap: on
line diff
--- a/hgext/githelp.py	Tue Jul 14 10:25:41 2020 +0200
+++ b/hgext/githelp.py	Mon Jul 20 21:56:27 2020 +0530
@@ -628,8 +628,17 @@
         (b'', b'stat', None, b''),
         (b'', b'graph', None, b''),
         (b'p', b'patch', None, b''),
+        (b'G', b'grep-diff', b'', b''),
+        (b'S', b'pickaxe-regex', b'', b''),
     ]
     args, opts = parseoptions(ui, cmdoptions, args)
+    grep_pat = opts.get(b'grep_diff') or opts.get(b'pickaxe_regex')
+    if grep_pat:
+        cmd = Command(b'grep')
+        cmd[b'--diff'] = grep_pat
+        ui.status(b'%s\n' % bytes(cmd))
+        return
+
     ui.status(
         _(
             b'note: -v prints the entire commit message like Git does. To '