I'm trying to get some nice output out of git:
FORMAT='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
LOG_PARAMS="--color --pretty=format:$FORMAT --abbrev-commit --no-walk"
function gch() {
git log $LOG_PARAMS $(commits)
}
(where commits is a function that collects relevant commits). But I get this instead:
fatal: ambiguous argument '%(s)': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
Presumably that has something to do with the quoting and spaces, but I'm far from fluent in bash. Any help?
function
prefix is a bashism, and can be removed without changing anything.