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

Re: RFC: Design and code of partial clones (now, missing commits and trees OK)

From
Michael Haggerty <mhagger@alum.mit.edu>
Date
Sep 26, 2017, 15:26 UTC
Message-ID
<c3245fd2-cff4-0266-37e9-35b307e0357b@alum.mit.edu>
In-Reply-To
<20170921154214.0d2ac45f@twelve2.svl.corp.google.com>
On 09/22/2017 12:42 AM, Jonathan Tan wrote:
Show 27 quoted lines
> On Thu, 21 Sep 2017 13:57:30 Jeff Hostetler <git@jeffhostetler.com> wrote:
> [...]
>> I struggled with the terms here a little when looking at the source.
>> () A remote responding to a partial-clone is termed a
>> "promisor-remote". () Packfiles received from a promisor-remote are
>> marked with "<name>.promisor" like "<name>.keep" names.
>> () An object actually contained in such packfiles is called a
>> "promisor-object". () An object not-present but referenced by one of
>> the above promisor-objects is called a "promised-object" (aka a
>> "missing-object").
>>
>> I think the similarity of the words "promisOR" and "promisED" threw
>> me here and as I was looking at the code.  The code in is_promised()
>> [1] looked like it was adding all promisor- and promised-objects to
>> the "promised" OIDSET, but I could be mistaken.
>>
>> [1]
>> https://github.com/jonathantanmy/git/commit/7a9c2d9b6e2fce293817b595dee29a7eede0dddd#diff-5d5d5dc185ef37dc30bb7d9a7ae0c4e8R1960
> 
> I was struggling a bit with the terminology, true.
> 
> Right now I'm thinking of:
>  - promisor remote (as you defined)
>  - promisor packfile (as you defined)
>  - promisor object is an object known to belong to the promisor (whether
>    because we have it in a promisor packfile or because it is referenced
>    by an object in a promisor packfile)

Maybe naming has been discussed at length before, and I am jumping into a long-settled topic. And admittedly this is bikeshedding.

But I find these names obscure, even as a developer. And terms like this will undoubtedly bleed into the UI and documentation, so it would be good to put some effort into choosing the best names possible.

I suppose that the term "promisor" comes from the computer science term "promise" [1]. In that sense it is apt, because, say, a promisor object is something that is known to be obtainable, but we don't have it yet.

But from the user's point of view, I think this isn't a very illuminating term. I think the user's mental model will be that there is a distinguished remote repository that holds the project's entire published history, and she has to remain connected to it for certain Git operations to work [2]. Another interesting aspect of this remote is that it has to be trusted never (well, almost never) to discard any objects [3].

Let me brainstorm about other names or concepts that seem closer to the user's mental model:

* "backing remote", "backing repository"
* "lazy remote", "live remote", "cloud remote", "shared remote",
  "on-demand remote"
* "full remote", "deep remote", "permanent remote"
* "attached remote", "bound remote", "linked remote"
* "trusted remote", "authoritative remote", "official remote"
  (these terms probably imply more than we want)
* "upstream", "upstream remote" (probably too confusing with how
  the term "upstream" is currently used, even if in practice they
  will often be the same remote)
* "object depot", "depot remote", "depot repository", "remote
  object depot" (I don't like the term "object" that much, because
  it is rather remote from the Git user's daily life)
* "repository of record", "remote of record" (too wordy)
* "history depot", "history warehouse" (meh)
* (dare I say it?) "central repository"
* "object archive", "archival remote" (not so good because we already
  use "archive" for other concepts)
* depository (sounds too much like "repository")
* The thesaurus suggests nouns like: store, bank, warehouse, library,
  chronicle, annals, registry, locker, strongbox, attic, bunker
Personally I think "lazy remote" and "backing remote" are not too bad.
Michael
[1] https://en.wikipedia.org/wiki/Futures_and_promises
[2] I haven't checked whether the current proposal allows for
    multiple "promisor remotes". It's certainly thinkable, if not
    now then in the future. But I suppose that even then, 99% of
    users will configure a single "promisor remote" for each
    repository.
[3] For those rare occasions where the server has to discard objects,
    it might make sense for the server to remember the names of the
    objects that were deleted, so that it can tell clients "no, you're
    not insane. I used to have that object but it has intentionally
    been obliterated", and possibly even a reason: "it is now taboo"
    vs. "I got tired of carrying it around".
Previous: Jonathan TanNext: Jonathan Tan
Message 7 of 21 in “RFC: Design and code of partial clones (now, missing commits and trees OK)”
  1. Jonathan TanSep 15, 2017
  2. Junio C HamanoSep 19, 2017
  3. Jeff HostetlerSep 21, 2017
  4. Jonathan TanSep 21, 2017
  5. Jeff HostetlerSep 22, 2017
  6. Jonathan TanSep 22, 2017
  7. Michael HaggertySep 26, 2017
  8. Jonathan TanSep 29, 2017
  9. Jeff HostetlerSep 21, 2017
  10. Jonathan TanSep 21, 2017
  11. Jeff HostetlerSep 22, 2017
  12. Jonathan TanSep 22, 2017
  13. Jeff HostetlerSep 26, 2017
  14. Jeff HostetlerSep 21, 2017
  15. Jonathan TanSep 21, 2017
  16. Jeff HostetlerSep 22, 2017
  17. Jonathan TanSep 22, 2017
  18. Jeff HostetlerSep 26, 2017
  19. Jonathan TanSep 26, 2017
  20. Jonathan TanSep 29, 2017
  21. Junio C HamanoSep 29, 2017

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.