Skip to content

Clone with packed-refs format "fully-peeled" by default #218

@achimmihca

Description

@achimmihca

Description

I found that JGit creates the file .git/packed-refs with format peeled by default.

However, usual Git CLI creates the file with format peeled fully-peeled sorted. This format seems to be more up to date and should thus be preferred.

Running the JGit command packRefs switches to fully-peeled format, similar to running git pack-refs.
So why not use this as default when cloning a repo with JGit?

Motivation

Not all Git clients support legacy "peeled" format, e.g., Fork Git Client: fork-dev/TrackerWin#2265

Alternatives considered

Run packRefs changes to fully-peeled format.
But would be nice to have this as default for a new clone.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions