>> If you fetch just branches A, B and C, but not D, the origin link from A
Yes, but you should not have used Stephen's proposed new option to git
cherry-pick, just like you shouldn't have used the existing -x option.
"-x" would not have created a dangling reference, but it would have
created a puzzling commit message.
These days I doubt people would use cherry-pick, they would probably use
interactive rebase. But anyway, exactly for the same reason...
... neither should cherry-picking create the origin link by default.
Only if requested by the user, using a new option that is basically "-x"
done in a different way. Just like "-x", it should not be used when
cherry-picking from private branches.
But say someone does it, then what happens? If people clone the branch,
the reference will be basically unusable. But since "git gc" does not
delete the referenced commit, at least the origin commit is still
available in the repository where the cherry-pick was made. It is
debatable whether it is better or worse than "-x".
Can we discuss instead a generic way to have porcelain-level metadata,
immutable or at least versioned, for the commit objects? (This is the
same kind of metadata as the author or committer, which clearly have
nothing to do with the git plumbing.) Do you have any proposal of saner
semantics, not for the origin link but for commit references within this
kind of metadata in general?
Paolo
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html