Thread (42 messages) flat view 42 messages, 5 authors, 2016-06-15

Re: [PATCH 1/5] t6300 (for-each-ref): modernize style

From: Tom Grennan <hidden>
Date: 2016-06-15 22:53:11

On Thu, Mar 01, 2012 at 07:53:11AM +0100, Johannes Sixt wrote:
Am 3/1/2012 2:45, schrieb Tom Grennan:
quoted
+	git for-each-ref --format="%(refname)" --sort=refname |
+		test_cmp expect -
DON'T DO THIS. It loses the exit code of the git invocation.

(And it is contrary to my effort to move all test_cmp away from being used
in a pipeline because I want to use a comparator tool that does not
understand '-' as stdin.)
OK, with bash, one could get that from PIPESTATUS, but that doesn't help if
you're not using bash or desire a different comparator.

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