patch-git: The emit_patchlist function should be local

Found by looking at:

luac -l -l patch-git.lua | grep -o '_ENV.*' | sort -u

RPM-Changelog: -
RPM-Skip-Release: yes
Related: RHEL-111490
This commit is contained in:
Florian Weimer 2025-09-23 10:17:09 +02:00
parent cf728b3d9f
commit 6894c74dd1

View File

@ -660,7 +660,7 @@ function patchgit.patches(options)
-- Perform version sort on the table and emit the patch names in
-- that order.
function emit_patchlist(patchlist)
local function emit_patchlist(patchlist)
-- Within one commit, patches are sorted lexicographically.
-- Remove the '.patch' suffix, so that it does not interfere
-- with sorting ('patch2b.patch' sorting before 'patch2.patch').