]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: break out a separate function git_read_nice
authorJohannes Sixt <j6t@kdbg.org>
Sat, 3 May 2025 11:11:21 +0000 (13:11 +0200)
committerTaylor Blau <me@ttaylorr.com>
Fri, 23 May 2025 21:04:23 +0000 (17:04 -0400)
commitaa42e87ef4ee9d84bd2fdb5e56de2ac2b61575d9
tree62b65e65745bbdb838eb08279d9b7d7db9b0e4ea
parent23ba43256b421c322af9b99150fb324575175bb0
git-gui: break out a separate function git_read_nice

There are two callers of git_read that request special treatment using
option --nice. Rewrite them to call a new function git_read_nice that
does the special treatment. Now we can remove all option treatment from
git_read.

git_write has the same capability, but there are no callers that
request --nice. Remove the feature without substitution.

This is a preparation for a later change where we want to make git_read
and friends non-variadic. Then it cannot have optional arguments.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
git-gui.sh
lib/blame.tcl
lib/diff.tcl