By default, IntelliJ won't support the equivalent of git commit -S ... because that command expects a terminal to input the GPG passphrase.
Create a script that will perform the GPG signing on commits without a terminal:
gpg-no-tty.sh
| import org.http4k.client.JavaHttpClient | |
| import org.http4k.core.Method | |
| import org.http4k.core.Request | |
| import org.http4k.core.then | |
| import org.http4k.filter.DebuggingFilters.PrintResponse | |
| fun main() { | |
| val client = JavaHttpClient() | |
| val printingClient = PrintResponse().then(client) |
| import com.googlecode.utterlyidle.* | |
| import com.googlecode.utterlyidle.servlet.ApplicationServlet | |
| import javax.servlet.http.HttpServlet | |
| import javax.servlet.http.HttpServletRequest | |
| import javax.servlet.http.HttpServletResponse | |
| class Application(bindings: List<Binding>): HttpHandler { | |
| val matcher = BindingMatcher(bindings = bindings) | |
| override fun handle(request: Request): Response { |
| package org.http4k.server | |
| import com.natpryce.hamkrest.assertion.assertThat | |
| import com.natpryce.hamkrest.equalTo | |
| import io.undertow.UndertowOptions | |
| import io.undertow.server.handlers.BlockingHandler | |
| import org.http4k.client.ApacheClient | |
| import org.http4k.core.BodyMode | |
| import org.http4k.core.HttpHandler | |
| import org.http4k.core.Method |
| git -c core.editor='sed -i -E "1s/SD-12259/SD-12891/"' \ | |
| -c sequence.editor='sed -i -E "s/^pick/reword/"' \ | |
| rebase -i f7f13c01cd4e3296618a9b1546b24c19d1b2a152~1 |
I hereby claim:
To claim this, I am signing this object:
| @Override | |
| public boolean equals(final Object obj) { | |
| if (obj == null) { | |
| return false; | |
| } | |
| if (obj == this) { | |
| return true; | |
| } | |
| if (obj.getClass() != getClass()) { | |
| return false; |