In Git 2.25 there comes native support for Elixir definitions. That will make `git diff --function-context` work properly. Additionally it makes diff headers to contain name of enclosing function. I hope that this will work in GitHub diffs as well.