From 64912a67a43dec151906b93f96b07f16e17f71e9 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 9 Jan 2009 22:21:36 -0800 Subject: Resurrect "git apply --flags -" to read from the standard input The previous "parse-opt"ification broke git-apply reading from the standard input. "git apply A - C --- t/t4106-apply-stdin.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 t/t4106-apply-stdin.sh (limited to 't') diff --git a/t/t4106-apply-stdin.sh b/t/t4106-apply-stdin.sh new file mode 100755 index 0000000000..72467a1e8e --- /dev/null +++ b/t/t4106-apply-stdin.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +test_description='git apply --numstat - text && + git add text && + echo goodbye >text && + git diff >patch +' + +test_expect_success 'git apply --numstat - < patch' ' + echo "1 1 text" >expect && + git apply --numstat - actual && + test_cmp expect actual +' + +test_expect_success 'git apply --numstat - < patch patch' ' + for i in 1 2; do echo "1 1 text"; done >expect && + git apply --numstat - < patch patch >actual && + test_cmp expect actual +' + +test_done -- cgit v1.2.3