Re: [PATCH] mergetool: Suppress stderr and fix the "both added" test

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

Re: [PATCH] mergetool: Suppress stderr and fix the "both added" test

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:50

David Aguilar [off-list ref] writes:
Silence error messages when "git checkout-index" is used to
checkout a stage that does not exist.  This can happen now that
mergetool calls checkout_staged_file() unconditionally when
creating the temporary $BASE, $LOCAL, and $REMOTE files.

Fix the test so that it checks the contents of the "both added"
file.  The test was passing as a consequence of accidentally
handing a bad path to "cat".

Signed-off-by: David Aguilar <redacted>
---
This applies on top of da/maint-mergetool-twoway in pu.
Thanks.

It might make sense to squash this into the previous patch, which luckily
hasn't hit 'next' yet, though---which I can do locally without need for
re-send if you like.

Re: [PATCH] mergetool: Suppress stderr and fix the "both added" test

From: David Aguilar <hidden>
Date: 2016-06-15 22:52:50

On Jan 21, 2012, at 1:27 PM, Junio C Hamano [off-list ref] wrote:
David Aguilar [off-list ref] writes:
quoted
Silence error messages when "git checkout-index" is used to
checkout a stage that does not exist.  This can happen now that
mergetool calls checkout_staged_file() unconditionally when
creating the temporary $BASE, $LOCAL, and $REMOTE files.

Fix the test so that it checks the contents of the "both added"
file.  The test was passing as a consequence of accidentally
handing a bad path to "cat".

Signed-off-by: David Aguilar <redacted>
---
This applies on top of da/maint-mergetool-twoway in pu.
Thanks.

It might make sense to squash this into the previous patch, which luckily
hasn't hit 'next' yet, though---which I can do locally without need for
re-send if you like.
Yes, please squash this commit. This is certainly a fix up.

Thanks,
David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help