git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 0/3] subtree: add 'git-subtree-repo' and list command

From
David A. Greene <greened@obbligato.org>
Date
May 21, 2016, 22:59 UTC
Message-ID
<87mvnjow4n.fsf@waller.obbligato.org>
In-Reply-To
<1457603052-53963-1-git-send-email-npaolucci@atlassian.com>
Nicola Paolucci <npaolucci@atlassian.com> writes:
Show 5 quoted lines
> To my knowledge 'git subtree' currently lacks a way to
> track where injected repositories come from originally.
> Adding this information allows for useful extensions to 
> the command and makes it easier to use subtrees to track
> external dependencies.

Thanks for working on this. I just sent a reply to your earlier iteration.

What is the intent for use of this? Is it simply to record from where commits were pulled or do you intend to use this information later on to have git-subtree guess from where to fetch future commits?

I would be opposed to the latter because I think it potentially limits the utility of git-subtree and may be misleading. I frequently pull commits for a subtree from several different clones of the same reposiory. How does git-subtree list handle that situation?

Does git-subtree list really print out repository information for every commit added by git-subtree? That's potentially a lot of commits. It might be more useful to aggregate repository information and only dump out unique URLs. In any case, processing all commits seems like a ton of work for such a simple operation. Maybe this information should be cached in .gitconfig.

I'm actually in the middle of cleaing up metadata but I'm not going to block these commits due to that. Just be aware that it may change a bit.

                  -David
Previous: Nicola Paolucci
Message 5 of 5 in “subtree: add 'git-subtree-repo' and list command”
  1. 0/3 subtree: add 'git-subtree-repo' and list commandNicola Paolucci, Mar 10, 2016
  2. 1/3 contrib/subtree: 'add' stores 'git-subtree-repo'Nicola Paolucci, Mar 10, 2016
  3. 2/3 contrib/subtree: new list command to list subtreesNicola Paolucci, Mar 10, 2016
  4. 3/3 contrib/subtree: list --resolve gets symbolic refsNicola Paolucci, Mar 10, 2016
  5. David A. GreeneMay 21, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.