Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » JGit Maintenance (Api to run maintenance tasks using JGit)
JGit Maintenance [message #1853336] Tue, 28 June 2022 06:37 Go to next message
Eclipse UserFriend
Hello World,
I am currently working on a GSoC project in Jenkins organization. The project aims to bring git cache maintenance to Jenkins. Jenkins software supports both git and jgit.

The cli git introduced the git maintenance api in git version 2.30. This api helps maintaining the git repositories present on the system. Tasks such as GC, prefetch, commit-graph etc can be scheduled using this command.

Is there something similar in JGit? I looked through the documentation and couldn't find anything regarding maintenance in JGit.

It would be helpful if I call each task as a command i.e a GC as a command, prefetch as a command etc.

I am not able to add the url of cli git-maintenace documentation as I am a new user.

Thank You
Hrushikesh Rao


Re: JGit Maintenance [message #1853345 is a reply to message #1853336] Tue, 28 June 2022 12:30 Go to previous messageGo to next message
Eclipse UserFriend
jgit does not yet support
- commit-graph (still in review here https://git.eclipse.org/r/q/topic:commit-graph)
- multi-pack index
- prefetch
- loose-objects strategy to pack loose objects separately
- support for maintenance.* config options
- support for maintenance commands in jgit command line client

gc and packing refs are available in the existing jgit implementation

Contributions are always welcome. So if you are interesting in closing some of these gaps
follow the contributor guide https://wiki.eclipse.org/EGit/Contributor_Guide

-Matthias
Re: JGit Maintenance [message #1853353 is a reply to message #1853345] Tue, 28 June 2022 15:40 Go to previous message
Eclipse UserFriend
Thank You for the response. Will look in JGit gc.
Previous Topic:Modify author date in JGit
Next Topic:What is the proper way to stage / unstage specific lines in a diff?
Goto Forum:
  


Current Time: Fri May 23 02:09:36 EDT 2025

Powered by FUDForum. Page generated in 0.04452 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top