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

Re: Use case (was Re: Should branches be objects?)

From
Theodore Ts'o <tytso@mit.edu>
Date
Jun 25, 2014, 22:44 UTC
Message-ID
<20140625224440.GD10397@thunk.org>
In-Reply-To
<xmqqegycans6.fsf@gitster.dls.corp.google.com>
On Wed, Jun 25, 2014 at 10:42:49AM -0700, Junio C Hamano wrote:
Show 20 quoted lines
> Nico Williams <nico@cryptonector.com> writes:
> 
> > On Tue, Jun 24, 2014 at 6:09 AM, Theodore Ts'o <tytso@mit.edu> wrote:
> > ...
> >> This seems pretty close to what we have with signed tags.  When I send
> >> a pull request to Linus, I create a signed tag which createscontains a
> >> message about a set of commits, and this message is automatically
> >> included in the pull request message generated with "git
> >> request-pull", and when Linus merges my pull request, the
> >> cryptographically signed tag, along with the message, date of the
> >> signature, etc., is preserved for all posterity.
> >
> > Thanks for pointing this out.  Signed tags are objects -- that's a
> > clear and strong precedent..
> 
> Sounds as if you are interpreting what Ted said as a supporting
> argument for having branches as separate type of objects, but the
> way I read it was "signed tags are sufficient for what you want to
> do; adding a new "branch" type does not make much sense at this
> point".

Yes, that's what I was saying. If you want to record a reliable "who pushed this" (or "who requested this to be pulled"), you really want to use a GPG signature, since otherwise the identity of the pusher can be completely faked --- especially if the you have a tiered system where you have sub-maintainers in the mix. So if you want any kind of auditability long after the fact, you want digital signatures, and so a signed tag maps exactly to what you want --- modulo needing a standardized "Linus Torvalds" bot. But the nice thing about creating such an automated pull request processing system is that it doesn't require making any changes to core git.

If you insist that it has to be done via a "git push", I suspect it wouldn't be that hard to add changes to Gerrit (which already has an concept of access control which ssh keys are allowed to push a change), and extended it to include a hook that validated whether the push included a signed tag. Again, no core changes needed to git, or to the repository format.

					- Ted
Previous: Junio C Hamano
Message 6 of 6 in “Use case (was Re: Should branches be objects?)”
  1. Nico WilliamsJun 24, 2014
  2. John KeepingJun 24, 2014
  3. Theodore Ts'oJun 24, 2014
  4. Nico WilliamsJun 25, 2014
  5. Junio C HamanoJun 25, 2014
  6. Theodore Ts'oJun 25, 2014

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.