Skip to content

FR: Promote tag fetching strategy to a JJ option (additionally) #7819

@Vampire

Description

@Vampire

On jj git clone and jj git remote add you can use --fetch-tags to configure which tags are fetched along.

But as far as I have seen these options just set the tagOpt option on the remote in the Git config.
I did not find a way to change that later on without falling back to using Git.
Except for removing the remote using jj git remote removeand readding it with jj git remote add that is.

It would be nice if this would be a regular jj config that you could also set in the --user file and that just gives --tags or --no-tags option to the fetch as appropriate.

I usually always want all tags to be fetched.
And if I would not want it for a repo, the repo config file could override it.

Up to now with Git I had an alias that fetched from all remotes with all tags and pruning remote tracking branches.
Fetching from all remotes is configurable with JJ, pruning remote tracking branches is done automatically, so the only missing thing is the tag fetching strategy.
And as I always used that fetching alias, I also never bothered to set the tagOpt on the remotes of the clones that I now do jj git init in.

Of course you might want to still configure it per remote,
so if the tagOpt option is set for some remote, it could still override the repo level config which overrides the user level config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions