Skip to content

Add support for gc.pruneExpire configuration #1859

@jelmer

Description

@jelmer

Add support for the gc.pruneExpire configuration option to control when unreachable objects are pruned during garbage collection.

This option specifies the grace period before unreachable objects are removed, allowing for recent operations to complete and providing a safety buffer. The default in Git is typically "2.weeks.ago".

Configuration format:

  • gc.pruneExpire = <time> - Prune unreachable objects older than specified time

Example: gc.pruneExpire = 1.week.ago

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions