Thread (14 messages) flat view 14 messages, 4 authors, 2016-06-15

Re: [PATCH 4/4] rebase -i: Add tests for "--edit-todo"

From: Martin von Zweigbergk <hidden>
Date: 2016-06-15 22:54:47

On Mon, Sep 17, 2012 at 10:23 PM, Andrew Wong [off-list ref] wrote:
On 09/18/12 00:58, Martin von Zweigbergk wrote:
quoted
On Mon, Sep 17, 2012 at 6:28 PM, Andrew Wong [off-list ref] wrote:
quoted
+       test M = $(git cat-file commit HEAD^ | sed -ne \$p) &&
+       test L = $(git cat-file commit HEAD | sed -ne \$p)
I couldn't find "$" (match last line) in the POSIX man page for sed.
Besides, I think $(git show -s --format=%s HEAD) reads better.
It's under "Addresses in sed":
        ... a '$' character that addresses the last line of input ...
Ah, I just didn't look hard enough; sorry. Good to know.

FWIW, Acked-by: Martin von Zweigbergk [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help