-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #877 from koutcher/master
Fix diff highlighting of removed lines starting with -- and added lines starting with ++
- Loading branch information
Showing
17 changed files
with
168 additions
and
15 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
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
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ Full Throttle <[email protected]> Max Power <[email protected]>" | |
EOF | ||
|
||
tigrc <<EOF | ||
set show-untracked = no | ||
set mailmap = yes | ||
# set diff-options = --use-mailmap | ||
# set main-options = --use-mailmap | ||
|
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,67 @@ | ||
#!/bin/sh | ||
|
||
. libtest.sh | ||
. libgit.sh | ||
. "$source_dir/util.sh" | ||
|
||
export LINES=20 | ||
|
||
steps ' | ||
:save-display start.screen | ||
<Enter> | ||
:save-display result.screen | ||
' | ||
|
||
tigrc <<EOF | ||
set vertical-split = no | ||
EOF | ||
|
||
in_work_dir create_dirty_workdir | ||
in_work_dir git add .j | ||
in_work_dir touch z | ||
|
||
test_tig | ||
|
||
assert_equals 'start.screen' <<EOF | ||
$YYY_MM_DD_HH_MM +0000 Unknown o Untracked changes | ||
$YYY_MM_DD_HH_MM +0000 Unknown o Unstaged changes | ||
$YYY_MM_DD_HH_MM +0000 Unknown o Staged changes | ||
2009-02-13 23:31 +0000 A. U. Thor I [master] Initial commit | ||
[main] Untracked changes 100% | ||
EOF | ||
|
||
assert_equals 'result.screen' <<EOF | ||
$YYY_MM_DD_HH_MM +0000 Unknown o Untracked changes | ||
$YYY_MM_DD_HH_MM +0000 Unknown o Unstaged changes | ||
$YYY_MM_DD_HH_MM +0000 Unknown o Staged changes | ||
2009-02-13 23:31 +0000 A. U. Thor I [master] Initial commit | ||
[main] Untracked changes 100% | ||
On branch master | ||
Changes to be committed: | ||
M .j | ||
Changes not staged for commit: | ||
M a | ||
M b.c | ||
M e/f | ||
M g h | ||
Untracked files: | ||
? z | ||
[status] Nothing to update 100% | ||
EOF |
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