10 lines
234 B
Fish
10 lines
234 B
Fish
|
#!/usr/bin/env fish
|
||
|
|
||
|
function gitgrephistory
|
||
|
if test (count $argv) -eq 1
|
||
|
git rev-list --all | xargs git grep $argv[1]
|
||
|
else
|
||
|
git rev-list --all | sed 's!$!:'"$argv[1]"'!' | xargs git grep "$argv[2]"
|
||
|
end
|
||
|
end
|