about summary refs log tree commit diff
path: root/third_party/git/t/chainlint/pipe.test
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/t/chainlint/pipe.test')
-rw-r--r--third_party/git/t/chainlint/pipe.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/git/t/chainlint/pipe.test b/third_party/git/t/chainlint/pipe.test
new file mode 100644
index 000000000000..e6af4de91672
--- /dev/null
+++ b/third_party/git/t/chainlint/pipe.test
@@ -0,0 +1,12 @@
+(
+# LINT: no "&&" needed on line ending with "|"
+	foo |
+	bar |
+	baz &&
+
+# LINT: final line of pipe sequence ('cow') lacking "&&"
+	fish |
+	cow
+
+	sunder
+)