News for hackers. Stuff that matters.
Re:Show HN: Mail2github – commit something to GitHub via email by arghwhat on Friday November 01, 2024 @01:16PM (#42019255)
There is an existing, well-established patch email workflow which git natively supports. Using that, and extending it when necessary, would make more sense.

See git-send-email and git-am.

Re:Show HN: Mail2github – commit something to GitHub via email by ulrischa on Friday November 01, 2024 @02:44PM (#42020218)
But therefore I need git installed, right? I want to use it i.e. to commit some text via mail on my smartphone
Re:Show HN: Mail2github – commit something to GitHub via email by arghwhat on Saturday November 02, 2024 @12:49PM (#42027503)
No, but you need to be able to write a well-formatted diff, which is pretty much the minimum requirement for sharing changes.

Emailing the entire new file every time will not work in anything but local tests as it cannot handle change conflicts. The format needs to know which parts of the file you changed, so your change does not accidentally undo other changes merged ahead of you.