diff --git a/prompts/get_staged_context.sh b/prompts/get_staged_context.sh new file mode 100755 index 0000000..464bd47 --- /dev/null +++ b/prompts/get_staged_context.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +git diff --name-only --cached | xargs -I {} echo -i "{}" | xargs code2prompt -c . diff --git a/prompts/summarize_staged b/prompts/summarize_staged.prompt similarity index 90% rename from prompts/summarize_staged rename to prompts/summarize_staged.prompt index 06220e3..6183041 100755 --- a/prompts/summarize_staged +++ b/prompts/summarize_staged.prompt @@ -27,7 +27,7 @@ MODEL="gemini-3-flash-preview" FALLBACK="claude-sonnet-4.6" context() { - code2prompt $(git diff --name-only --cached | sed 's/.*/-i "&"/') . + git diff --name-only --cached | xargs -I {} echo -i "{}" | xargs code2prompt . } diff() {