diffcore-pickaxe: make error messages more consistent
commit276b22d333d4207928f6cfe3ab7c1898cd509b88
authorRamkumar Ramachandra <artagnon@gmail.com>
Fri, 31 May 2013 12:12:14 +0000 (31 17:42 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Jun 2013 17:50:22 +0000 (3 10:50 -0700)
treec12d0ce55ba84e39f6c52de8722cc132c608d38f
parentedca4152560522a431a51fc0a06147fc680b5b18
diffcore-pickaxe: make error messages more consistent

Currently, diffcore-pickaxe reports two distinct errors for the same
user error:

    $ git log --pickaxe-regex -S'\1'
    fatal: invalid pickaxe regex: Invalid back reference

    $ git log -G'\1'
    fatal: invalid log-grep regex: Invalid back reference

This "log-grep" was only an internal name for the -G feature during
development, and invite confusion with "git log --grep=<pattern>".

Change the error messages to say "invalid regex".

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diffcore-pickaxe.c