Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-09-08 23:30:34 +0300
committerJunio C Hamano <gitster@pobox.com>2021-09-08 23:30:34 +0300
commitcfba19618f61d8dce247160d3e9516b041bb98cf (patch)
tree0c54b05ff3da61aa938bb684dd1d27eded93a2a6 /t
parentf7ab8267401da4c124e571b7774f457ddeea17aa (diff)
parentc93ca46cf5d0b0cd22e357a6460fa84fd4633440 (diff)
Merge branch 'sg/column-nl'
The parser for the "--nl" option of "git column" has been corrected. * sg/column-nl: column: fix parsing of the '--nl' option
Diffstat (limited to 't')
-rwxr-xr-xt/t9002-column.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/t9002-column.sh b/t/t9002-column.sh
index 89983527b6..6d3dbde3fe 100755
--- a/t/t9002-column.sh
+++ b/t/t9002-column.sh
@@ -42,6 +42,24 @@ EOF
test_cmp expected actual
'
+test_expect_success '--nl' '
+ cat >expected <<\EOF &&
+oneZ
+twoZ
+threeZ
+fourZ
+fiveZ
+sixZ
+sevenZ
+eightZ
+nineZ
+tenZ
+elevenZ
+EOF
+ git column --nl="Z$LF" --mode=plain <lista >actual &&
+ test_cmp expected actual
+'
+
test_expect_success '80 columns' '
cat >expected <<\EOF &&
one two three four five six seven eight nine ten eleven