Re: Properties of trees referencing commit objects (mode 160000)?

2016-03-21 Thread Josh Triplett
On Mon, Mar 21, 2016 at 01:57:13AM -0400, Jeff King wrote: > On Sun, Mar 20, 2016 at 04:22:02PM -0700, Josh Triplett wrote: > > > I want to track the evolution of a patch series or other commit history, > > through non-fast-forwarding actions like rebase, rebase -i, or commit > > --amend.

Re: Properties of trees referencing commit objects (mode 160000)?

2016-03-20 Thread Jeff King
On Sun, Mar 20, 2016 at 04:22:02PM -0700, Josh Triplett wrote: > I want to track the evolution of a patch series or other commit history, > through non-fast-forwarding actions like rebase, rebase -i, or commit > --amend. Similar in spirit to reflog, but with intentional commits and > commit

Re: Properties of trees referencing commit objects (mode 160000)?

2016-03-20 Thread Josh Triplett
On Sun, Mar 20, 2016 at 04:07:25PM -0400, Jeff King wrote: > On Sun, Mar 20, 2016 at 11:45:24AM -0700, Josh Triplett wrote: > > > No, we do not follow "gitlinks" like this for reachability. Neither for > > > pruning, nor for object transfer via push/fetch. So you'd need to have a > > > separate

Re: Properties of trees referencing commit objects (mode 160000)?

2016-03-20 Thread Josh Triplett
On Sun, Mar 20, 2016 at 03:30:27PM -0700, Junio C Hamano wrote: > Josh Triplett writes: > > > On Sun, Mar 20, 2016 at 12:18:04AM -0400, Jeff King wrote: > >> On Sat, Mar 19, 2016 at 03:13:48PM -0700, Josh Triplett wrote: > >> > >> > I'm building some tools to track commit

Re: Properties of trees referencing commit objects (mode 160000)?

2016-03-20 Thread Junio C Hamano
Josh Triplett writes: > On Sun, Mar 20, 2016 at 12:18:04AM -0400, Jeff King wrote: >> On Sat, Mar 19, 2016 at 03:13:48PM -0700, Josh Triplett wrote: >> >> > I'm building some tools to track commit objects, and I'm thinking of >> > using submodule-style references to

Re: Properties of trees referencing commit objects (mode 160000)?

2016-03-20 Thread Jeff King
On Sun, Mar 20, 2016 at 11:45:24AM -0700, Josh Triplett wrote: > Will git clone/checkout/etc handle it properly in that case, in the > absence of a .gitmodules file? Or would it only work with custom tools? I think checkout just creates an empty tree for any gitlinks, and waits for the

Re: Properties of trees referencing commit objects (mode 160000)?

2016-03-20 Thread Josh Triplett
On Sun, Mar 20, 2016 at 12:18:04AM -0400, Jeff King wrote: > On Sat, Mar 19, 2016 at 03:13:48PM -0700, Josh Triplett wrote: > > > 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 > > 16) to do so.

Re: Properties of trees referencing commit objects (mode 160000)?

2016-03-19 Thread Jeff King
On Sat, Mar 19, 2016 at 03:13:48PM -0700, Josh Triplett wrote: > 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 > 16) to do so. I'm trying to figure out some of the properties of > that. > > Can

Properties of trees referencing commit objects (mode 160000)?

2016-03-19 Thread Josh Triplett
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 16) 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