# Re: \[PATCH 1/3\] t5730: introduce fetch command helper

- From: Junio C Hamano \<hidden\>
- Date: 2021-08-09 21:43:23 
- List: git
- Page: https://ratatoskr.run/git/2021/08/7898913
- Thread: https://ratatoskr.run/git/2021/08/7898913/t.md

```text
Jonathan Nieder [ref] writes:

> Here the entirety of the input to "test-tool pkt-line pack" is the
> entirety of the output from write_fetch_command, which would suggest
> either
>
>  a. making write_fetch_command pipe its output to "test-tool pkt-line
>     pack", or
>
>  b. using a pipe instead of a command substitution, like
>     "write_fetch_command ... | test-tool pkt-line pack >in"
>
> (although as mentioned above, I think it's simpler to inline the
> write_fetch_command and even the write_command as well).

Yeah, write_command was not saving all that much to begin with.  I
was hoping that there were a lot more commonality that we can save
some typing.


```
