News for hackers. Stuff that matters.
Re:Show HN: Mail2github – commit something to GitHub via email by ulrischa on Thursday October 31, 2024 @04:55PM (#42011416)
This is especially useful to archive ai chats on github. It works with email so you do not have to install any app
Re:Show HN: Mail2github – commit something to GitHub via email by Imustaskforhelp on Friday November 01, 2024 @12:55PM (#42018977)
? I didn't get what you just said
Re:Show HN: Mail2github – commit something to GitHub via email by notthetup on Friday November 01, 2024 @01:05AM (#42014197)
Super handy. I wish there was a way to create an issue as well from the email as well.
Re:Show HN: Mail2github – commit something to GitHub via email by ulrischa on Friday November 01, 2024 @04:00AM (#42014882)
I will add it
Re:Show HN: Mail2github – commit something to GitHub via email by SahAssar on Friday November 01, 2024 @09:38AM (#42016812)
Whats the reason to build your own command structure for filename, author, etc. instead of using the existing git tools like `git format-patch` and using `git am` for applying patches?
Re:Show HN: Mail2github – commit something to GitHub via email by ulrischa on Friday November 01, 2024 @10:52AM (#42017491)
I don't use git. It works via email. Or do you mean using the git commands in the email subject?
Re:Show HN: Mail2github – commit something to GitHub via email by SahAssar on Friday November 01, 2024 @11:10AM (#42017666)
I mean the format for selecting paths and so on. Git already has a standard patch format for sending changes via email and a builtin utility for applying them to a repo, so why not use that format?
Re:Show HN: Mail2github – commit something to GitHub via email by ulrischa on Friday November 01, 2024 @02:50PM (#42020279)
But I need to have git installed. I simply want to send something to my repo via email from my smartphone.
Re:Show HN: Mail2github – commit something to GitHub via email by SahAssar on Friday November 01, 2024 @10:50PM (#42023708)
For the mentioned workflow in chatgpt I'm guessing chatgpt can generate the email body for you in the correct format, but sure it is a step over just copy-pasting the raw text.
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.

Re:Show HN: Mail2github – commit something to GitHub via email by moronix on Monday November 04, 2024 @11:21AM (#42043001)
Wasn't git developed to move kernel development workflow away from email?