diff_text = (
"=== added directory 'foo/bar'\n"
"=== modified file 'foo/bar/baz.py'\n" XXX: can a dirty header be associated with more than one file?
"--- bar\t2009-08-26 15:53:34.000000000 -0400\n"
"+++ bar\t1969-12-31 19:00:00.000000000 -0500\n"
"@@ -1,3 +0,0 @@\n"
"-\xc3\xa5\n"
"-b\n"
"-c\n"
"--- baz\t1969-12-31 19:00:00.000000000 -0500\n" XXX: in the real world, this would always be preceded with a dirty header and a blank line?
"+++ baz\t2009-08-26 15:53:57.000000000 -0400\n"
"@@ -0,0 +1,2 @@\n"
"+a\n"
"+b\n"
"@@ -1,2 +0,0 @@\n"
"-x\n"
"-y\n"
"--- foo\t2009-08-26 15:53:23.000000000 -0400\n"
"+++ foo\t2009-08-26 15:56:43.000000000 -0400\n"
"@@ -1,3 +1,4 @@\n"
" a\n"
"-b\n"
" c\n"
"+d\n"
"+e\n"
" \n"
"=== modified file 'fulango.py'\n"
"--- fulano.py\t2014-08-26 15:53:34.000000000 -0400\n"
"+++ fulano.py\t2015-12-31 19:00:00.000000000 -0500\n"
"@@ -1,3 +1,4 @@\n"
" a\n"
"-fulano\n"
" c\n"
"+mengano\n"
"+zutano\n")