Thread (1 message) 1 message, 1 author, 2019-03-11

Fwd: [GSoC][PATCH v2 4/5] t0022-crlf-rename: avoid using pipes

From: ttjtftx <hidden>
Date: 2019-03-11 15:54:17

Sorry, I forgot to Cc.

---------- Forwarded message ---------
From: ttjtftx <redacted>
Date: Mon, Mar 11, 2019 at 11:43 PM
Subject: Re: [GSoC][PATCH v2 4/5] t0022-crlf-rename: avoid using pipes
To: Eric Sunshine <redacted>


On Sun, Mar 10, 2019 at 6:03 PM Eric Sunshine [off-list ref] wrote:
All of the patches in this series are malformed. There should be a
"---" line right here below your sign-off. The "---" line is
recognized by git-am/git-apply as separating the commit message from
the actual diff(s).
I will check it next time.
It is a very well-established custom in Git tests for the files handed
to test_cmp() to be named "expect" and "actual", so this change is not
the most desirable. What you can do instead is:

    git diff-tree -M -r --name-status HEAD^ HEAD >output &&
    sed -e "s/R[0-9]*/RNUM/" output >actual &&

which allows you to leave the test_cmp() line alone, thus (as a bonus)
makes the patch less noisy.
Thanks for the tips! Now I see why "actual" is the most used name for
output files.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help