Live data from Hacker News

Show HN: Learn to use email with Git

git-send-email.io

71–76 of 76 posts

Re: Show HN: Learn to use email with Git

#71

Maybe I missed it, but I think it would be great to also explain what happens on the other end of this process. What does someone do when they receive a patch?

git apply filename.patch

It's a little more involved than that depending on what mail client you use. There is no git-get-email command that would standardize the experience.

Re: Show HN: Learn to use email with Git

#72
post #45

Earlier quoted context omitted.

> mailing lists are clunky, intuitive, and simply horrible for large discussions On the contrary, I largely prefer mailing lists for non-code discussions (i.e. things that are not code review or filing bugs). When Swift's mailing lists moved to Discourse I realized that I stopped interacting with it as much because it was more inconvenient to work with (especially on mobile).

If you self-host your own git service, you could email everyone e.g. in a specific organization very easily. On something like GitHub it's nearly impossible, but when you own your data its just a database query + email away.

You can write a web hook that'll be called by Github (authenticated with a shared secret) to do that job. Unless I don't understand the use case.

Re: Show HN: Learn to use email with Git

#73

Earlier quoted context omitted.

Ooooooo. Is there such a thing as SSMTP/SIMAP (i.e. something that is to SMTP/IMAP as SFTP is to FTP - i.e. an SSH-based thing that sends and/or receives mail to/from a mail server)? It'd be badass to be able to literally just use my SSH keys to authenticate when sending/receiving mail.

You can literally invoke imapd over ssh and it will preauthenticate as the user that invoked imapd. I used to do this with PINE 20 years ago. Good luck getting any of the big MSPs to support it, though.

I used elm back in the day. Was excited and confused when I started seeing all sorts of articles about elm, until I realized it was a different elm.

Re: Show HN: Learn to use email with Git

#74
post #12
post #9

Earlier quoted context omitted.

The Google implementation of application specific passwords is horrible . There's nothing application specific about it -- it's valid for at least mail, calendar, and contacts, with no way to limit the scope. It ends up being a password that effectively bypasses all MFA on your Google account. Where do you store such a password? That's a powerful credential to be regularly unlocking. I should be able to create a cred…

If you want that level of granularity then you pretty much have to write an app but it's absolutely possible. https://developers.google.com/gmail/api/auth/scopes

Even creating an app, the hoops are non-trivial. Due to the scope required (gmail.send), app verification and approval is required.

I've been toying with writing a credential helper to obtain the oauth bearer token, but Authen::SASL::XOAUTH2 still needs to be written so that git-send-mail knows how to use it.

Re: Show HN: Learn to use email with Git

#75
post #10
post #7

Can only speak for myself, but I didn't understand enough context to get much out of the site. I'm used git for small, personal collaborations, so I don't know why it sends email or when you would want it to do that. I don't know what a "patch" means here and why you use email with them. If I'm not your target audience, then that's fine, but it might be helpful to have some background on this. Otherwise, the site and…

The idea is that in order for multiple people to collaborate, most of the time you will need a service like Github, Bitbucket or perhaps something you can run yourself. This is a different workflow. Instead of staying in sync via a hosted service, people stay in sync and send 'pull requests' via email.

git itself includes at least 2 methods of running that server itself....

``git daemon`` is entirely self-contained and permits the git:// protocol for clones/push/pull etc

``git instaweb`` will piggyback a simple git web service on top of a number of httpd's including lighttpd.

I'm sure that git's homepage used to use instaweb for it's repo access, but it seems they've switched to github :(

Re: Show HN: Learn to use email with Git

#76

Earlier quoted context omitted.

Ooooooo. Is there such a thing as SSMTP/SIMAP (i.e. something that is to SMTP/IMAP as SFTP is to FTP - i.e. an SSH-based thing that sends and/or receives mail to/from a mail server)? It'd be badass to be able to literally just use my SSH keys to authenticate when sending/receiving mail.

You can literally invoke imapd over ssh and it will preauthenticate as the user that invoked imapd. I used to do this with PINE 20 years ago. Good luck getting any of the big MSPs to support it, though.

I'll have to give that a whirl. This would be with my own mailserver, so whether or not the MSPs support it is irrelevant :)
Post reply on HN