gage merge
The gage merge command merges objects that
gage fetch fetched from a remote into the store. It
merges the named objects and what they link, the objects of a type and what
they link with --type, or everything fetched from the remote with --all,
and reports what could not be merged. The remote is not
contacted.
REMOTE is a remote name from gage remote add.
Objects are tag names, object IDs, or unique ID prefixes as the fetch of the
remote has them. With no objects, the command merges the objects the remote
records as its fetch default. Pass --all to merge everything fetched from the
remote. A remote that has not been fetched is an error that names gage fetch.
--type takes one of attachment, dataset, issue, note, scan,
session, or share. It selects every fetched object of that type, and
everything those objects link is merged with them: an issue brings the notes it
cites. The rest of the fetch is left unmerged. --type excludes named objects,
--all, --ours, and --theirs.
An object the store does not have is created. An object changed on one side
alone takes the newer commit. An object changed on both sides is merged where
its type allows it. One that cannot be merged is reported as a conflict and left
as it is, and the command exits with status 1. Run the command again with the
conflicting objects named and --ours or --theirs to resolve it.
To fetch and merge in one run, see gage pull.