Commit 79a3ef5
gitk: collect construction of blameargs into a single conditional
The command line to invoke 'git blame' for a single line is constructed
using several if-conditionals, each with the same condition
{$from_index new {}}. Merge all of them into a single conditional.
This requires to duplicate significant parts of the command, but it
helps the next change, where we will have to deal with a nested list
structure.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Taylor Blau <me@ttaylorr.com>1 parent 2aeb448 commit 79a3ef5
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3967 | 3967 | | |
3968 | 3968 | | |
3969 | 3969 | | |
3970 | | - | |
| 3970 | + | |
3971 | 3971 | | |
3972 | | - | |
3973 | | - | |
3974 | | - | |
3975 | | - | |
3976 | | - | |
| 3972 | + | |
| 3973 | + | |
| 3974 | + | |
3977 | 3975 | | |
3978 | | - | |
| 3976 | + | |
| 3977 | + | |
3979 | 3978 | | |
3980 | | - | |
3981 | 3979 | | |
3982 | 3980 | | |
3983 | 3981 | | |
| |||
0 commit comments