Currently, based on this question I was able to come up with the following command:
git log -u -L 1626,1626:airflow/www/app.py 7399d6176181190a63b70eeec0f7012156c15332..HEAD
E.g. I'm looking for when line 1626 was modified (deleted) from airflow/www/app.py. The line number is valid in commit 7399d6, but not in HEAD, resulting in the following error:
fatal: file airflow/www/app.py has only 255 lines
(The file is much shorter since then.)
I think I wouldn't have this problem if the file was long enough. Can I maybe turn off this check somehow?