-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for hiding diff signs (leading + and -)
The `+` and `-` signs in diff views can be removed by setting the new option `diff-hide-signs`. When set, only the color of the lines distinguishes added, removed and context lines. Empty added or removed lines are indicated by a space in column 0 with the "diff highlight" colors which has the `reverse` property by default. Closes #855
- Loading branch information
Showing
5 changed files
with
79 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/sh | ||
|
||
. libtest.sh | ||
. libgit.sh | ||
|
||
tigrc <<EOF | ||
set diff-hide-signs = true | ||
EOF | ||
|
||
steps ' | ||
:save-display diff-hide-signs.screen | ||
' | ||
|
||
in_work_dir create_repo_from_tgz "$base_dir/files/scala-js-benchmarks.tgz" | ||
|
||
test_tig show master^ | ||
|
||
assert_equals 'diff-hide-signs.screen' <<EOF | ||
commit a1dcf1aaa11470978db1d5d8bcf9e16201eb70ff | ||
Author: Jonas Fonseca <[email protected]> | ||
AuthorDate: Sat Mar 1 15:59:02 2014 -0500 | ||
Commit: Jonas Fonseca <[email protected]> | ||
CommitDate: Sat Mar 1 15:59:02 2014 -0500 | ||
Add type parameter for js.Dynamic | ||
--- | ||
common/src/main/scala/org/scalajs/benchmark/Benchmark.scala | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
diff --git a/common/src/main/scala/org/scalajs/benchmark/Benchmark.scala b/commo | ||
index 65f914a..3aa4320 100644 | ||
--- a/common/src/main/scala/org/scalajs/benchmark/Benchmark.scala | ||
+++ b/common/src/main/scala/org/scalajs/benchmark/Benchmark.scala | ||
@@ -15,7 +15,7 @@ object Benchmark { | ||
val benchmarks = js.Array[Benchmark]() | ||
val benchmarkApps = js.Array[BenchmarkApp]() | ||
val global = js.Dynamic.global.asInstanceOf[js.Dictionary] | ||
val global = js.Dynamic.global.asInstanceOf[js.Dictionary[js.Any]] | ||
global("runScalaJSBenchmarks") = runBenchmarks _ | ||
global("initScalaJSBenchmarkApps") = initBenchmarkApps _ | ||
[diff] a1dcf1aaa11470978db1d5d8bcf9e16201eb70ff - line 1 of 24 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