git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* limiting ref visibility to specific users
@ 2010-08-17 15:09 Enrico Weigelt
  2010-08-17 15:48 ` Sverre Rabbelier
  0 siblings, 1 reply; 3+ messages in thread
From: Enrico Weigelt @ 2010-08-17 15:09 UTC (permalink / raw)
  To: git

Hi folks,


I'd like to control which refs are visible to certain users
(when coming via ssh). Is there already some generic way to
do that (eg. passing some filter rule by a calling wrapper ?)


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------

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

* Re: limiting ref visibility to specific users
  2010-08-17 15:09 limiting ref visibility to specific users Enrico Weigelt
@ 2010-08-17 15:48 ` Sverre Rabbelier
  2010-08-17 16:55   ` Shawn Pearce
  0 siblings, 1 reply; 3+ messages in thread
From: Sverre Rabbelier @ 2010-08-17 15:48 UTC (permalink / raw)
  To: weigelt, git, Shawn O. Pearce

Heya,

On Tue, Aug 17, 2010 at 10:09, Enrico Weigelt <weigelt@metux.de> wrote:
> I'd like to control which refs are visible to certain users
> (when coming via ssh). Is there already some generic way to
> do that (eg. passing some filter rule by a calling wrapper ?)

Shawn, weren't you looking into something similar for Gerrit? Although
I think what you were investigating would allow the user to get the
rest of the refs somehow?

-- 
Cheers,

Sverre Rabbelier

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

* Re: limiting ref visibility to specific users
  2010-08-17 15:48 ` Sverre Rabbelier
@ 2010-08-17 16:55   ` Shawn Pearce
  0 siblings, 0 replies; 3+ messages in thread
From: Shawn Pearce @ 2010-08-17 16:55 UTC (permalink / raw)
  To: Sverre Rabbelier, weigelt; +Cc: git

On Tue, Aug 17, 2010 at 8:48 AM, Sverre Rabbelier <srabbelier@gmail.com> wrote:
> On Tue, Aug 17, 2010 at 10:09, Enrico Weigelt <weigelt@metux.de> wrote:
>> I'd like to control which refs are visible to certain users
>> (when coming via ssh). Is there already some generic way to
>> do that (eg. passing some filter rule by a calling wrapper ?)
>
> Shawn, weren't you looking into something similar for Gerrit? Although
> I think what you were investigating would allow the user to get the
> rest of the refs somehow?

Yup.  We implemented this in JGit by allowing the application to
provide an implementation of a RefFilter interface, only the refs that
the filter approves are shown to the remote client.  During
receive-pack (server side of push) the RefFilter also is used to
restrict what objects the client may mention as a delta base, or as an
object in the graph (e.g. commit parent, commit root tree, or tree
entry member).

There is no equivalent in C Git.  You have to use either Gerrit Code
Review, or build your own server on top of JGit to take advantage of
that feature.

-- 
Shawn.

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

end of thread, other threads:[~2010-08-17 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-17 15:09 limiting ref visibility to specific users Enrico Weigelt
2010-08-17 15:48 ` Sverre Rabbelier
2010-08-17 16:55   ` Shawn Pearce

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).