Skip to content

Conversation

@thelastnode
Copy link
Contributor

Fixes #43

@thelastnode
Copy link
Contributor Author

You can run this without cloning using uv: uvx --with git+https://github.com/thelastnode/files-to-prompt.git@as/add-stdin-support files-to-prompt

Chains very nicely after something like llm cmd git command for file names changed in the last commit, NUL separated

Example to try for easy copy-pasting:

# files changed in the last commit git diff --name-only -z HEAD~1 HEAD | uvx --with git+https://github.com/thelastnode/files-to-prompt.git@as/add-stdin-support files-to-prompt --null
@simonw
Copy link
Owner

simonw commented Feb 19, 2025

I wasn't sure if -0 or -z or --null would make better names, so I did a bit of research with Claude and I think your design here is good: https://gist.github.com/simonw/d7cec5fcbd23a50b620ea93e0f32ef71

@thelastnode
Copy link
Contributor Author

Ah, yeah, sorry - should have mentioned that I copied the semantics from xargs (had a similar question with Copilot!)

@simonw simonw merged commit 630bbf9 into simonw:main Feb 19, 2025
5 checks passed
simonw added a commit that referenced this pull request Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants