From 86ea59c378fd09598449969e594bed1cd87814cb Mon Sep 17 00:00:00 2001 From: Ian Goodacre Date: Thu, 20 Mar 2025 06:03:06 +0000 Subject: [PATCH] Fix patching.sh to include untracked (new) files in patch --- lib/functions/compilation/patch/patching.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/functions/compilation/patch/patching.sh b/lib/functions/compilation/patch/patching.sh index a77c4c9f46..ef768da9b5 100644 --- a/lib/functions/compilation/patch/patching.sh +++ b/lib/functions/compilation/patch/patching.sh @@ -181,6 +181,7 @@ function userpatch_create() { fi display_alert "OK, here's how your diff looks like" "showing patch diff" "info" + git add -N . git "${common_git_params[@]}" diff | run_tool_batcat --file-name "${patch}" - # Prompt the user if he is happy with the patch