-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'jc/pickaxe-ignore-case'
By Junio C Hamano (2) and Ramsay Jones (1) * jc/pickaxe-ignore-case: ctype.c: Fix a sparse warning pickaxe: allow -i to search in patch case-insensitively grep: use static trans-case table
- v2.8.1
- v2.8.0
- v2.8.0-rc4
- v2.8.0-rc3
- v2.8.0-rc2
- v2.8.0-rc1
- v2.8.0-rc0
- v2.7.4
- v2.7.3
- v2.7.2
- v2.7.1
- v2.7.0
- v2.7.0-rc3
- v2.7.0-rc2
- v2.7.0-rc1
- v2.7.0-rc0
- v2.6.6
- v2.6.5
- v2.6.4
- v2.6.3
- v2.6.2
- v2.6.1
- v2.6.0
- v2.6.0-rc3
- v2.6.0-rc2
- v2.6.0-rc1
- v2.6.0-rc0
- v2.5.5
- v2.5.4
- v2.5.3
- v2.5.2
- v2.5.1
- v2.5.0
- v2.5.0-rc3
- v2.5.0-rc2
- v2.5.0-rc1
- v2.5.0-rc0
- v2.4.11
- v2.4.10
- v2.4.9
- v2.4.8
- v2.4.7
- v2.4.6
- v2.4.5
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.4.0-rc3
- v2.4.0-rc2
- v2.4.0-rc1
- v2.4.0-rc0
- v2.3.10
- v2.3.9
- v2.3.8
- v2.3.7
- v2.3.6
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.3.0-rc2
- v2.3.0-rc1
- v2.3.0-rc0
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.2.0-rc3
- v2.2.0-rc2
- v2.2.0-rc1
- v2.2.0-rc0
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.1.0-rc2
- v2.1.0-rc1
- v2.1.0-rc0
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v2.0.0-rc4
- v2.0.0-rc3
- v2.0.0-rc2
- v2.0.0-rc1
- v2.0.0-rc0
- v1.9.5
- v1.9.4
- v1.9.3
- v1.9.2
- v1.9.1
- v1.9.0
- v1.9.0-rc3
- v1.9-rc2
- v1.9-rc1
- v1.9-rc0
- v1.8.5.6
- v1.8.5.5
- v1.8.5.4
- v1.8.5.3
- v1.8.5.2
- v1.8.5.1
- v1.8.5
- v1.8.5-rc3
- v1.8.5-rc2
- v1.8.5-rc1
- v1.8.5-rc0
- v1.8.4.5
- v1.8.4.4
- v1.8.4.3
- v1.8.4.2
- v1.8.4.1
- v1.8.4
- v1.8.4-rc4
- v1.8.4-rc3
- v1.8.4-rc2
- v1.8.4-rc1
- v1.8.4-rc0
- v1.8.3.4
- v1.8.3.3
- v1.8.3.2
- v1.8.3.1
- v1.8.3
- v1.8.3-rc3
- v1.8.3-rc2
- v1.8.3-rc1
- v1.8.3-rc0
- v1.8.2.3
- v1.8.2.2
- v1.8.2.1
- v1.8.2
- v1.8.2-rc3
- v1.8.2-rc2
- v1.8.2-rc1
- v1.8.2-rc0
- v1.8.1.6
- v1.8.1.5
- v1.8.1.4
- v1.8.1.3
- v1.8.1.2
- v1.8.1.1
- v1.8.1
- v1.8.1-rc3
- v1.8.1-rc2
- v1.8.1-rc1
- v1.8.1-rc0
- v1.8.0.3
- v1.8.0.2
- v1.8.0.1
- v1.8.0
- v1.8.0-rc3
- v1.8.0-rc2
- v1.8.0-rc1
- v1.8.0-rc0
- v1.7.12.4
- v1.7.12.3
- v1.7.12.2
- v1.7.12.1
- v1.7.12
- v1.7.12-rc3
- v1.7.12-rc2
- v1.7.12-rc1
- v1.7.12-rc0
- v1.7.11.7
- v1.7.11.6
- v1.7.11.5
- v1.7.11.4
- v1.7.11.3
- v1.7.11.2
- v1.7.11.1
- v1.7.11
- v1.7.11-rc3
- v1.7.11-rc2
- v1.7.11-rc1
- v1.7.11-rc0
- v1.7.10.5
- v1.7.10.4
- v1.7.10.3
- v1.7.10.2
- v1.7.10.1
- v1.7.10
- v1.7.10-rc4
- v1.7.10-rc3
- v1.7.10-rc2
- v1.7.10-rc1
- v1.7.10-rc0
Showing
7 changed files
with
170 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
#!/bin/sh | ||
|
||
test_description='log --grep/--author/--regexp-ignore-case/-S/-G' | ||
. ./test-lib.sh | ||
|
||
test_expect_success setup ' | ||
>file && | ||
git add file && | ||
test_tick && | ||
git commit -m initial && | ||
echo Picked >file && | ||
test_tick && | ||
git commit -a --author="Another Person <another@example.com>" -m second | ||
' | ||
|
||
test_expect_success 'log --grep' ' | ||
git log --grep=initial --format=%H >actual && | ||
git rev-parse --verify HEAD^ >expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log --grep --regexp-ignore-case' ' | ||
git log --regexp-ignore-case --grep=InItial --format=%H >actual && | ||
git rev-parse --verify HEAD^ >expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log --grep -i' ' | ||
git log -i --grep=InItial --format=%H >actual && | ||
git rev-parse --verify HEAD^ >expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log --author --regexp-ignore-case' ' | ||
git log --regexp-ignore-case --author=person --format=%H >actual && | ||
git rev-parse --verify HEAD >expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log --author -i' ' | ||
git log -i --author=person --format=%H >actual && | ||
git rev-parse --verify HEAD >expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log -G (nomatch)' ' | ||
git log -Gpicked --format=%H >actual && | ||
>expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log -G (match)' ' | ||
git log -GPicked --format=%H >actual && | ||
git rev-parse --verify HEAD >expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log -G --regexp-ignore-case (nomatch)' ' | ||
git log --regexp-ignore-case -Gpickle --format=%H >actual && | ||
>expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log -G -i (nomatch)' ' | ||
git log -i -Gpickle --format=%H >actual && | ||
>expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log -G --regexp-ignore-case (match)' ' | ||
git log --regexp-ignore-case -Gpicked --format=%H >actual && | ||
git rev-parse --verify HEAD >expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log -G -i (match)' ' | ||
git log -i -Gpicked --format=%H >actual && | ||
git rev-parse --verify HEAD >expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log -S (nomatch)' ' | ||
git log -Spicked --format=%H >actual && | ||
>expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log -S (match)' ' | ||
git log -SPicked --format=%H >actual && | ||
git rev-parse --verify HEAD >expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log -S --regexp-ignore-case (match)' ' | ||
git log --regexp-ignore-case -Spicked --format=%H >actual && | ||
git rev-parse --verify HEAD >expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log -S -i (match)' ' | ||
git log -i -Spicked --format=%H >actual && | ||
git rev-parse --verify HEAD >expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log -S --regexp-ignore-case (nomatch)' ' | ||
git log --regexp-ignore-case -Spickle --format=%H >actual && | ||
>expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_expect_success 'log -S -i (nomatch)' ' | ||
git log -i -Spickle --format=%H >actual && | ||
>expect && | ||
test_cmp expect actual | ||
' | ||
|
||
test_done |