2

I am using git send-email to email patch but i wanted to send the colour diff so I converted diff.patch file to colour_diff.html using ansi2HTML converter plugin in python but it saves file to html , so I am trying to send this html file now but when I try to send I get this error message

Unsuccessful stat on filename containing newline at /Library/Developer/CommandLineTools/usr/libexec/git-core/git-send-email line 568.
Unsuccessful stat on filename containing newline at /Library/Developer/CommandLineTools/usr/libexec/git-core/git-send-email line 575.
Unsuccessful stat on filename containing newline at /Library/Developer/CommandLineTools/usr/libexec/git-core/git-send-email line 575.
fatal: failed to stat 

is their any way to get this to work or do I have to use smtplib module to email html diff patch ?

Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
  • so I have figured out how to send html diff but `git send-email` just dumps html in email instead of embedding HTML formatting. – Ciasto piekarz Jan 25 '14 at 04:49
  • possible duplicate of [Using sendmail for HTML body and binary attachment](http://stackoverflow.com/questions/11134857/using-sendmail-for-html-body-and-binary-attachment) – Paul Sweatte Jul 29 '15 at 06:45

1 Answers1

1

So I ended up writing my own tool to send git diff by email. I cannot post the whole code here since its too lengthy .

I have put link here: git maildiff

Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197