]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: convert git_read*, git_write to be non-variadic
authorJohannes Sixt <j6t@kdbg.org>
Sat, 3 May 2025 11:24:48 +0000 (13:24 +0200)
committerTaylor Blau <me@ttaylorr.com>
Fri, 23 May 2025 21:04:24 +0000 (17:04 -0400)
commitdc9ecb1aab1a3438fceeb44db67ddf8e8d938324
treebc04579d737471a9bccd119b91c2d0d599cc6de5
parent074c2b9d7c4b1201f261263f011074c733a85d38
git-gui: convert git_read*, git_write to be non-variadic

We are going to treat command arguments and redirections differently to
avoid passing arguments that look like redirections to the command
accidentally. To do so, it will be necessary to know which arguments
are intentional redirections. As a preparation, convert git_read,
git_read_nice, and git_write to take just a single argument that is
the command in a list. Adjust all call sites accordingly.

In the future, this argument will be the regular command arguments and
a second argument will be the redirection operations.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
16 files changed:
git-gui.sh
lib/blame.tcl
lib/branch.tcl
lib/browser.tcl
lib/checkout_op.tcl
lib/choose_repository.tcl
lib/choose_rev.tcl
lib/commit.tcl
lib/console.tcl
lib/database.tcl
lib/diff.tcl
lib/index.tcl
lib/merge.tcl
lib/mergetool.tcl
lib/remote.tcl
lib/remote_branch_delete.tcl