Reputation: 422
I have this function
git_list_bad_commits() {
git rev-list master..HEAD --oneline -i ${grep:1}
}
Sometimes I want to call it just as it is.
Sometimes I want to call it with the addition of the git argument --count
How do I do that?
Upvotes: 0
Views: 41
Reputation: 58978
Just add the function arguments to the command:
git_list_bad_commits() {
git rev-list master..HEAD "$@" --oneline -i ${grep:1}
}
Upvotes: 1