about summary refs log blame commit diff
path: root/third_party/git/t/chainlint/inline-comment.test
blob: 8f26856e775b569871849f62856a27013de44be3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                       
(
# LINT: swallow inline comment (leaving command intact)
	foobar && # comment 1
# LINT: mispositioned "&&" (correctly) swallowed with comment
	barfoo # wrong position for &&
# LINT: "#" in string not misinterpreted as comment
	flibble "not a # comment"
) &&

# LINT: "#" in string in cuddled subshell not misinterpreted as comment
(cd foo &&
	flibble "not a # comment")