feat: Add local repository support to latest rendergit version#18
feat: Add local repository support to latest rendergit version#18gopipm wants to merge 1 commit intokarpathy:masterfrom
Conversation
✨ Features Added: - Enhanced CLI to accept both GitHub URLs and local directory paths - Automatic detection of local vs remote repositories - Smart handling for both local directories and remote clones - Preserved all latest upstream improvements and optimizations 🔧 Changes: - Updated argument parser: repo_url -> repo_source (accepts URLs or paths) - Added local repository detection logic in main() - Conditional temporary directory creation (only for remote repos) - Updated documentation with local repository usage examples - Enhanced pyproject.toml description to reflect new capabilities 📚 Usage: - Remote: rendergit https://github.com/user/repo - Local: rendergit /path/to/local/repo 🎯 Benefits: - Analyze local codebases without requiring GitHub hosting - Work with private repositories and works-in-progress - Enhanced development workflow integration - Maintains full backward compatibility This enhancement makes rendergit significantly more versatile for daily development work while incorporating all the latest upstream improvements including BSD-0 license, UV tool support, and recent bug fixes.
Add Local Repository Support🎯 SummaryThis PR adds support for local directory processing in addition to the existing GitHub URL support, making rendergit more versatile for development workflows. ✨ Key Enhancement# Existing functionality (unchanged)
rendergit https://github.com/user/repo
# New functionality - analyze local codebases!
rendergit /path/to/local/repo |
|
Hi. I'm not one of the maintainers, but I believe cd /path/to/local/repo
rendergit -o ~/Desktop/output.html "$(pwd)"will open It's neat to clarify this in the cli help and README, though. |
|
@kkew3 yep, i also used it on local repos with location for local git repo instead of url many times already, works fine, but it does "clone" local repos still. Im guessing this eliminates that so local git repos are used as is and if url it clones it. |
|
I was looking for that local repo support:) |
|
Having local support would be great. The provided example of the current capabilities still tries to do a |
You can use my fork then, afaik author of this repo will not maintain/update it anymore, i have made some changes which includes proper local git repo support, replaced subprocess calls with gitpython, llm only output as text file and minification of supported code in llm output beside some other things: https://github.com/Sohil876/rendergitPlus |
✨ Features Added:
🔧 Changes:
📚 Usage:
🎯 Benefits:
This enhancement makes rendergit significantly more versatile for daily development work while incorporating all the latest upstream improvements including BSD-0 license, UV tool support, and recent bug fixes.