Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » JGit Maintenance (Api to run maintenance tasks using JGit)
JGit Maintenance [message #1853336] Tue, 28 June 2022 10:37 Go to next message
Hrushikesh Rao is currently offline Hrushikesh RaoFriend
Messages: 2
Registered: June 2022
Junior Member
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 16:30 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1212
Registered: July 2009
Senior Member
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 19:40 Go to previous message
Hrushikesh Rao is currently offline Hrushikesh RaoFriend
Messages: 2
Registered: June 2022
Junior Member
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: Wed Sep 28 20:14:32 GMT 2022

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

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

Back to the top