Skip to content

Commit 556c5e0

Browse files
committed
Merge branch 'maint'
By Thomas Rast * maint: t5704: fix nonportable sed/grep usages Document the --histogram diff option
2 parents 8555123 + 0dbe659 commit 556c5e0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Documentation/diff-options.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ endif::git-format-patch[]
5252
--patience::
5353
Generate a diff using the "patience diff" algorithm.
5454

55+
--histogram::
56+
Generate a diff using the "histogram diff" algorithm.
57+
5558
--stat[=<width>[,<name-width>[,<count>]]]::
5659
Generate a diffstat. You can override the default
5760
output width for 80-column terminal by `--stat=<width>`.

t/t5704-bundle.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ test_expect_success 'ridiculously long subject in boundary' '
5454
git bundle list-heads long-subject-bundle.bdl >heads &&
5555
test -s heads &&
5656
git fetch long-subject-bundle.bdl &&
57-
sed -n "/^-/{p;q}" long-subject-bundle.bdl >boundary &&
58-
grep "^-$_x40 " boundary
57+
sed -n "/^-/{p;q;}" long-subject-bundle.bdl >boundary &&
58+
grep "^-[0-9a-f]\\{40\\} " boundary
5959
'
6060

6161
test_done

0 commit comments

Comments
 (0)