Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
By Thomas Rast
* maint:
  t5704: fix nonportable sed/grep usages
  Document the --histogram diff option
  • Loading branch information
Junio C Hamano committed Mar 6, 2012
2 parents 8555123 + 0dbe659 commit 556c5e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Documentation/diff-options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ endif::git-format-patch[]
--patience::
Generate a diff using the "patience diff" algorithm.

--histogram::
Generate a diff using the "histogram diff" algorithm.

--stat[=<width>[,<name-width>[,<count>]]]::
Generate a diffstat. You can override the default
output width for 80-column terminal by `--stat=<width>`.
Expand Down
4 changes: 2 additions & 2 deletions t/t5704-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ test_expect_success 'ridiculously long subject in boundary' '
git bundle list-heads long-subject-bundle.bdl >heads &&
test -s heads &&
git fetch long-subject-bundle.bdl &&
sed -n "/^-/{p;q}" long-subject-bundle.bdl >boundary &&
grep "^-$_x40 " boundary
sed -n "/^-/{p;q;}" long-subject-bundle.bdl >boundary &&
grep "^-[0-9a-f]\\{40\\} " boundary
'

test_done

0 comments on commit 556c5e0

Please sign in to comment.