]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: introduce function git_redir for git calls with redirections
authorJohannes Sixt <j6t@kdbg.org>
Sun, 4 May 2025 18:26:11 +0000 (20:26 +0200)
committerTaylor Blau <me@ttaylorr.com>
Fri, 23 May 2025 21:04:24 +0000 (17:04 -0400)
commit99f7bc1af65fabab907bf35e645241f714e7386e
treea8924f8deb0d5462d3391d57c814ee370352c6e5
parent60b0ba0a04c413b716dc33f83285ede26e820668
git-gui: introduce function git_redir for git calls with redirections

Proc git invokes git and collects all output, which is it returns.
We are going to treat command arguments and redirections differently to
avoid passing arguments that look like redirections to the command
accidentally. A few invocations also pass redirection operators as
command arguments deliberately. Rewrite these cases to use a new
function git_redir that takes two lists, one for the regular command
arguments and one for the redirection operations.

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