All of lore.kernel.org
 help / color / mirror / Atom feed
* Pinned references?
@ 2026-06-18 18:37 Erik Östlund
  2026-06-19  7:38 ` Patrick Steinhardt
  0 siblings, 1 reply; 3+ messages in thread
From: Erik Östlund @ 2026-06-18 18:37 UTC (permalink / raw)
  To: git

I'd like to be able to express a reference together with an expected
object ID, for example with strawman syntax like:

refs/tags/v1.2.3?oid=a1b2c3d4

The intended semantics would be that both the reference and object ID
must exist, and Git should fail if the reference does not resolve to the
specified object ID.

Tags are nice because they convey human meaning. Object IDs are nice
because they are immutable. As it is, I often have to choose between the
two, or represent them separately in external tooling.

Is there existing terminology, prior discussion, or an accepted Git-native
approach for this kind of "ref plus expected OID" invariant? I
searched both the Git reference documentation and the mailing list
archives, but couldn't find what I was looking for.

Thanks,
Erik

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-19 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-18 18:37 Pinned references? Erik Östlund
2026-06-19  7:38 ` Patrick Steinhardt
2026-06-19 16:25   ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.