diff options
author | John Cai <johncai86@gmail.com> | 2022-02-18 18:23:13 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-18 11:21:46 -0800 |
commit | 4cf5d53b62a8e5fce64db97f830e00fa38bd0994 (patch) | |
tree | 08112e6cfc5692f24a3b7115c4eb3e456915f434 /t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_side | |
parent | cat-file: introduce batch_mode enum to replace print_contents (diff) | |
download | tgif-4cf5d53b62a8e5fce64db97f830e00fa38bd0994.tar.xz |
cat-file: add remove_timestamp helper
maybe_remove_timestamp() takes arguments, but it would be useful to have
a function that reads from stdin and strips the timestamp. This would
allow tests to pipe data into a function to remove timestamps, and
wouldn't have to always assign a variable. This is especially helpful
when the data is multiple lines.
Keep maybe_remove_timestamp() the same, but add a remove_timestamp
helper that reads from stdin.
The tests in the next patch will make use of this.
Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_side')
0 files changed, 0 insertions, 0 deletions