git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Properties of trees referencing commit objects (mode 160000)?
@ 2016-03-19 22:13 Josh Triplett
  2016-03-20  4:18 ` Jeff King
  0 siblings, 1 reply; 9+ messages in thread
From: Josh Triplett @ 2016-03-19 22:13 UTC (permalink / raw)
  To: git

I'm building some tools to track commit objects, and I'm thinking of
using submodule-style references to commit objects in tree objects (mode
160000) to do so.  I'm trying to figure out some of the properties of
that.

Can a commit object referenced that way live in the same repository,
rather than some external repository?

Will git treat such a reference as keeping the commit object (and
everything recursively referenced by it) live and reachable?  If that
commit object is only reachable by the tree, and not by following the
parents of any commit directly referenced from refs/*, will git discard
it as unreachable?

- Josh Triplett

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

end of thread, other threads:[~2016-03-21 15:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-19 22:13 Properties of trees referencing commit objects (mode 160000)? Josh Triplett
2016-03-20  4:18 ` Jeff King
2016-03-20 18:45   ` Josh Triplett
2016-03-20 20:07     ` Jeff King
2016-03-20 23:22       ` Josh Triplett
2016-03-21  5:57         ` Jeff King
2016-03-21 15:36           ` Josh Triplett
2016-03-20 22:30     ` Junio C Hamano
2016-03-20 22:43       ` Josh Triplett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).