From: Johannes Schindelin Date: Tue, 18 Jul 2006 23:25:57 GMT Subject: [PATCH] Allow an alias to start with "-p" Message-ID: Now, something like [alias] pd = -p diff works as expected. Signed-off-by: Johannes Schindelin --- git.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/git.c b/git.c index 537af3a..a969b1b 100644 --- a/git.c +++ b/git.c @@ -115,6 +115,12 @@ static int handle_alias(int *argcp, cons count = split_cmdline(alias_string, &new_argv); + if (count > 0 && !strcmp(new_argv[0], "-p")) { + setup_pager(); + count--; + new_argv++; + } + if (count < 1) die("empty alias for %s", alias_command); -- 1.4.1.g3c58e