In my .gitconfig
I have an alias set to lol
to run the following command:
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*
I read in another post that I shouldn't use no-pager, so I used the method of setting the pager to cat
as shown below.
I was expecting the output of my alias to match the output of the above command as shown below, but nothing happens. Any ideas why?
command history:
➜ ~/w/t/some-dir master ✓ git log
commit 4f6dc31e12fb6b39c8d44f293b7561f132c4d9ad
Author: Max Bigras <mbigras22@gmail.com>
Date: Sun Oct 30 20:43:40 2016 -0700
Add readme
➜ ~/w/t/some-dir master ✓ git lg
* 4f6dc31 - (HEAD -> master) Add readme (5 minutes ago) <Max Bigras>
➜ ~/w/t/some-dir master ✓ git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*
* 4f6dc31 (HEAD -> master) Add readme
➜ ~/w/t/some-dir master ✓ git lol
➜ ~/w/t/some-dir master ✓
.gitconfig
:
[user]
name = Max Bigras
email = mbigras22@gmail.com
[core]
editor = vim
autocrlf = input
excludesfile = /Users/max/.gitignore_global
[push]
default = simple
[alias]
co = checkout
br = branch
ci = commit
s = status
unstage = reset HEAD --
quickcommit-m= "!git add -A; git commit -m"
alias = config --get-regexp ^alias\\.
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lol = log --graph --pretty=oneline --abbrev-commit --decorate --all $*
[pager]
lol = cat
.
.
.