summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2022-12-05 14:37:41 +0100
committerPratyush Yadav <me@yadavpratyush.com>2023-01-24 14:10:40 +0100
commitfd477a1d3bab580c2fcdc435f551dca3094286ae (patch)
tree2f1802b4c23d4c01d0adf541c41c826fd77f64e4 /builtin/commit.c
parente0539b4b25310e242d30b91a2c86f5e7a30aade6 (diff)
Move the `_which` function (almost) to the top
We are about to make use of the `_which` function to address CVE-2022-41953 by overriding Tcl/Tk's unsafe PATH lookup on Windows. In preparation for that, let's move it close to the top of the file to make sure that even early `exec` calls that happen during the start-up of Git GUI benefit from the fix. This commit is best viewed with `--color-moved`. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Pratyush Yadav <me@yadavpratyush.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions