]> git.ipfire.org Git - thirdparty/git.git/commit
gitk: collect construction of blameargs into a single conditional
authorJohannes Sixt <j6t@kdbg.org>
Sun, 23 Mar 2025 21:34:11 +0000 (22:34 +0100)
committerTaylor Blau <me@ttaylorr.com>
Fri, 23 May 2025 21:03:30 +0000 (17:03 -0400)
commit79a3ef53143f75450a828f4bc4e9dd3d4f2bb5ba
tree58261b447a03f4829cb21b6f79680c68fa3a255b
parent2aeb4484a046a545fb540ba07397b25b13fe6881
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>
gitk