git repository from here https://github.com/sanfx/git-maildiff
So last weekend I started digging into this finding a way how I can save my time by pushing the latest commit of my work in progress feature branch and emailing the diff to my colleague of my work with the colour diff so as to make the changes more obvious to spot. Last weekend I also discovered that there is already a command that do part of it , git send-email I thought I could use that, but unfortunately I was disappointed that it doesn't send diffs in colour, having diff in colour easily lets pick up where the changes have been made, then I found a package on pypi ansi2HTML and thought my problem is solved and to my astonishment I discovered that I cannot use git send-email in conjunction with ansi2HTML since ansi2HTML embeds styles in head tag in HTML <style > for colour formatting and gmail doesn't support <styles> tag within the message body. So I kept digging, and just yesterday I came up with a way to convert simple diff to HTML colour diff, then I used smtplib python module to send the diff through email. manually tested and all working fine.
git repository from here https://github.com/sanfx/git-maildiff
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
Custom Search
Other Blogs & PagesGit Commands Animation & VFX SitesA MUST READ for Ani/VFX Artistsawakened by thoughts,
|