-
Notifications
You must be signed in to change notification settings - Fork 750
Description
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 remove
and 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.