Skip to content

Conversation

@gopipm
Copy link

@gopipm gopipm commented Aug 22, 2025

✨ 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:

🎯 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.

✨ 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.
@gopipm
Copy link
Author

gopipm commented Aug 22, 2025

Add Local Repository Support

🎯 Summary

This 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

@kkew3
Copy link

kkew3 commented Aug 23, 2025

Hi. I'm not one of the maintainers, but I believe rendergit is already capable of handling local path, as git clone --depth=1 <local-path> <dest-dir> roughly just cp -r <local-path> <dest-dir>. For example,

cd /path/to/local/repo
rendergit -o ~/Desktop/output.html "$(pwd)"

will open ~/Desktop/output.html containing the rendering of the repo /path/to/local/repo.

It's neat to clarify this in the cli help and README, though.

@Sohil876
Copy link

Sohil876 commented Aug 23, 2025

@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.

@Kanan99
Copy link

Kanan99 commented Aug 25, 2025

I was looking for that local repo support:)

@cjerrington
Copy link

Having local support would be great. The provided example of the current capabilities still tries to do a git clone, and that doesn't work in my case.

@Sohil876
Copy link

Having local support would be great. The provided example of the current capabilities still tries to do a git clone, and that doesn't work in my case.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants