Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize Repository Forking Process #104

Open
gounthar opened this issue Jul 17, 2024 · 2 comments
Open

Optimize Repository Forking Process #104

gounthar opened this issue Jul 17, 2024 · 2 comments
Labels
enhancement For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted good first issue Good for newcomers

Comments

@gounthar
Copy link
Contributor

gounthar commented Jul 17, 2024

What feature do you want to see added?

Current Situation

When forking a repository on GitHub, our current process retrieves all branches from the original repository.

Issue

This approach may be inefficient and unnecessary for our use case.

Desired Outcome

We aim to fork only the default branch of the repository, as this is typically sufficient for our work.

GitHub GUI Option

The GitHub web interface provides an option to fork only the default branch (usually the main branch).

JGit Consideration

It's unclear whether JGit, the Java library we use for Git operations, offers a similar option to fork only the default branch.

Proposed Solution

  1. Investigate if JGit provides functionality to fork only the default branch.
  2. If available, implement this feature in our forking process.
  3. If not available through JGit, explore alternative methods to achieve this goal.

Benefits

  1. Efficiency: Reduces unnecessary data transfer and storage.
  2. Simplicity: Maintains a cleaner repository structure in our forks.
  3. Focus: Aligns with our primary need of working with the main branch.

Next Steps

  1. Research JGit documentation and community resources for potential solutions.
  2. If no direct JGit solution exists, consider implementing a custom approach to achieve the desired outcome.
  3. Test and validate any new implementation to ensure it doesn't introduce unforeseen issues.

Conclusion

Optimizing our forking process to retrieve only the main branch will streamline our workflow and improve overall efficiency. This change aligns with best practices for managing forks when only the main branch is needed for development or analysis purposes.

Upstream changes

No response

Are you interested in contributing this feature?

No response

@gounthar gounthar added the enhancement For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted label Jul 17, 2024
@lemeurherve
Copy link
Member

lemeurherve commented Jul 17, 2024 via email

@gounthar
Copy link
Contributor Author

Yes indeed.

@jonesbusy jonesbusy added the good first issue Good for newcomers label Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants