Skip to contentSkip to conversation

Adding rebase merge strategy

PATCH Tom Clarke 2 participants 2 messages Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Tom Clarke

author
#1 lore raw

Review

Quoted 7 lines · Tom Clarke
(quoted diff) +7 -0
+               ( git log --pretty=format:"%s" ) >actual &&
+       (
+               echo "onbranch"
+               echo "update"
+               echo -n "initial"
+       ) >expected &&
+       git diff -w -u expected actual

One issue that I'm curious about. Is it expected that the git log format above doesn't finish with a new line? I couldn't get this test to work otherwise.

-Tom

#2 lore raw

Hi,

Quoted 9 lines · Tom Clarke

Review

Quoted 7 lines · Tom Clarke
(quoted diff) +7 -0
+               ( git log --pretty=format:"%s" ) >actual &&
+       (
+               echo "onbranch"
+               echo "update"
+               echo -n "initial"
+       ) >expected &&
+       git diff -w -u expected actual
Quoted 3 lines

One issue that I'm curious about. Is it expected that the git log format above doesn't finish with a new line? I couldn't get this test to work otherwise.

Indeed, it does not end in a newline. However, I'd solve the issue differently:

- I'd use --pretty=oneline (and use test_tick before every commit, to guarantee consistent object names).

- If you _have_ to keep your way, please use "printf", since "echo -n" is not portable AFAIK.

- Or just do "echo > actual". And use "cat << EOF" like in most of the other tests.

Ciao,
Dscho