9 lines
259 B
Fish
Executable file
9 lines
259 B
Fish
Executable file
#!/usr/bin/env fish
|
|
|
|
function gitgrephistory -d "git grep in history"
|
|
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
|