Re: [PATCH 3/4 v2] Add tests for .git file

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 3/4 v2] Add tests for .git file

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:10

"Lars Hjemli" [off-list ref] writes:
On Feb 6, 2008 9:40 AM, Junio C Hamano [off-list ref] wrote:
quoted
Lars Hjemli [off-list ref] writes:
quoted
+objpath() {
+    echo $1 | sed -re 's|(..)(.+)|\1/\2|'
+}
"sed -r"???  Please limit ourselves to the basics.
Sorry, I didn't realize 'sed -r' wasn't kosher. Should I resend or is
this something you'd --amend?
If we live in POSIX only world it is fine, but I try to be
conservative when I am able.

No need to resend; I've done something like this (there are
other minor amends).

    diff --git a/t/t0002-gitfile.sh b/t/t0002-gitfile.sh
    new file mode 100755
    index 0000000..d280663
    --- /dev/null
    +++ b/t/t0002-gitfile.sh
    @@ -0,0 +1,74 @@
    +#!/bin/sh
    +
    +test_description='.git file
    +
    +Verify that plumbing commands work when .git is a file
    +'
    +. ./test-lib.sh
    +
    +objpath() {
    +    echo "$1" | sed -e 's|\(..\)|\1/|'
    +}
    + ...

But the result won't be pushed out til tomorrow morning.

Re: [PATCH 3/4 v2] Add tests for .git file

From: Lars Hjemli <hidden>
Date: 2016-06-15 22:44:10

On Feb 6, 2008 11:13 AM, Junio C Hamano [off-list ref] wrote:
"Lars Hjemli" [off-list ref] writes:
quoted
On Feb 6, 2008 9:40 AM, Junio C Hamano [off-list ref] wrote:
quoted
Lars Hjemli [off-list ref] writes:
quoted
+objpath() {
+    echo $1 | sed -re 's|(..)(.+)|\1/\2|'
+}
"sed -r"???  Please limit ourselves to the basics.
Sorry, I didn't realize 'sed -r' wasn't kosher. Should I resend or is
this something you'd --amend?
If we live in POSIX only world it is fine, but I try to be
conservative when I am able.
Ok, good to know that my lack of experience doesn't pollute the codebase ;-)
No need to resend; I've done something like this (there are
other minor amends).
...
    +objpath() {
    +    echo "$1" | sed -e 's|\(..\)|\1/|'
    +}
Thanks.
--
larsh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help