git completion: Complete commits for all branches

This commit is contained in:
Fabian Homborg 2015-12-30 16:26:28 +01:00
parent 95c30f7a23
commit b7fb11cb7f

View file

@ -6,7 +6,7 @@ function __fish_git_commits
# This allows filtering by subject with the new pager!
# Because even subject lines can be quite long,
# trim them (abbrev'd hash+tab+subject) to 70 characters
command git log --pretty=tformat:"%h"\t"%s" \
command git log --pretty=tformat:"%h"\t"%s" --all \
| string replace -r '(.{70}).+' '$1...'
end