File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -399,6 +399,7 @@ static void finish(struct commit *head_commit,
399
399
if (new_head && show_diffstat ) {
400
400
struct diff_options opts ;
401
401
diff_setup (& opts );
402
+ opts .stat_width = -1 ; /* use full terminal width */
402
403
opts .output_format |=
403
404
DIFF_FORMAT_SUMMARY | DIFF_FORMAT_DIFFSTAT ;
404
405
opts .detect_rename = DIFF_DETECT_RENAME ;
Original file line number Diff line number Diff line change @@ -168,19 +168,19 @@ respects expect200 log -1 --stat
168
168
EOF
169
169
170
170
cat > expect << 'EOF '
171
- abcd | 1000 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
171
+ abcd | 1000 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
172
172
EOF
173
- test_expect_success ' merge --stat ignores COLUMNS (big change)' '
173
+ test_expect_success ' merge --stat respects COLUMNS (big change)' '
174
174
git checkout -b branch HEAD^^ &&
175
175
COLUMNS=100 git merge --stat --no-ff master^ >output &&
176
176
grep " | " output >actual
177
177
test_cmp expect actual
178
178
'
179
179
180
180
cat > expect << 'EOF '
181
- ...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 1000 ++++++++++++++++++++
181
+ ...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | 1000 ++++++++++++++++++++++++++++++++++++++++
182
182
EOF
183
- test_expect_success ' merge --stat ignores COLUMNS (long filename)' '
183
+ test_expect_success ' merge --stat respects COLUMNS (long filename)' '
184
184
COLUMNS=100 git merge --stat --no-ff master >output &&
185
185
grep " | " output >actual
186
186
test_cmp expect actual
You can’t perform that action at this time.
0 commit comments