If I have this file
def main():
    foo
    bar
    baz
    quux
    corge
and I change it to
def other():
    foo
    bar
    baz
def main():
    other()
    quux
    corge
I really want to see the diff
+def other():
+    foo
+    bar
+    baz
+
 def main():
+    other()
-    foo
-    bar
-    baz
     quux
     corge
but git diff gives me
-def main():
+def other():
     foo
     bar
     baz
+
+def main():
+    other()
     quux
     corge
(with every diff algorithm it offers, patience, minimal, histogram and myers). Is there some way to persuade it to generate semantically clearer diffs?
 
    