jplejacq
jplejacq

Reputation: 111

Is it possible to include tags with git format-patch

git format-patch does not appear to include tags, either lightweight or annotated, in the final patch file.

Is that the case? If so, what do folks do to synchronize repositories that include tags using patch files?

Upvotes: 2

Views: 274

Answers (1)

Marcus Müller
Marcus Müller

Reputation: 36442

A tag is simply nothing that has anything to do with a patch. It's supposed to describe a state of your tree, not a difference.

So, no, that's neither possible nor sensible.

If so, what do folks do to synchronize repositories that include tags using patch files?

You can't synchronize tags via email. The format-patch / send-email procedure is meant for change communication, not for release management, version tracking etc.

Upvotes: 2

Related Questions