I have a set of aliases for different type of logs, like:
lg = log --graph --pretty=format:'%C(cyan)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(red)<%an>%Creset' --abbrev-commit --date=relative
unreleased = !git --no-pager log --graph --pretty=format:'%C(cyan)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(red)<%an>%Creset' --abbrev-commit --date=relative release..master
There are many type of log aliases, but most of them share the same format. How can I define a local variable with the content of the common parts?
Ideally, I would like to avoid using an environment variable for that