diff options
author | Johannes Sixt <j6t@kdbg.org> | 2025-05-04 15:06:11 +0200 |
---|---|---|
committer | Taylor Blau <me@ttaylorr.com> | 2025-05-23 17:04:24 -0400 |
commit | 1e0a93c3d35c84547b21ba704a9c4383d4360140 (patch) | |
tree | 8ebeef719c054857e841116948e92b6d0e7c135d /git-gui/lib/commit.tcl | |
parent | dc9ecb1aab1a3438fceeb44db67ddf8e8d938324 (diff) |
git-gui: pass redirections as separate argument to _open_stdout_stderr
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. Rewrite direct callers of
_open_stdout_stderr to pass intentional redirections as a second
(optional) argument.
Passing arbitrary arguments is not safe right now, but we rename it
to safe_open_command anyway to avoid having to touch the call sites
again later when we make it actually safe.
We cannot make the function safe right away because one caller is
git_read, which does not yet know which of its arguments are
redirections. This is the topic of the next commit.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions