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

Re: Can I enforce required approval on some files

From
Sylvain Rabot <sylvain@abstraction.fr>
Date
Jul 20, 2010, 20:45 UTC
Message-ID
<1279658706.2519.12.camel@kheops>
In-Reply-To
<AANLkTinQI9eBnwjzPhYHMM8XZ0ODfHJ1qiZJrNWQWUno@mail.gmail.com>
On Tue, 2010-07-20 at 13:22 -0700, Dominik Gront wrote:
Show 18 quoted lines
> Dear Group,
> 
> I have been a happy SVN user for quite a long time, but now I miss
> some functionality in Subversion. I wonder if it could be done in git.
> If so, I convert to git right away :-)
> 
> There are some files in our repository that all their modification
> need to be approved by a project leader.  In general the desired
> behavior would be (examples given in svn commands) :
> - user runs "svn ci"
> - some files have status "pending" or "waiting for approval"
> - anyone can do "svn up", modifications to the pending files are not
> retrieved, project leader can get the modified versions
> - project leader accepts the changes
> - anyone running "svn ci" sees all the modifications
> 
> Best,
> Tim
Hi,

Git itself does not allow what you want but the workflow used to work with git does.

Each developer work and on a "copy" of the "blessed" repository (the one checked out in svn, cloned in git) so it does not matter if modifications done to a file need approval or not. Once the developer is happy with his work he has to send his commit(s) to the person(s) in charge of maintaining the project and this/those people will review the changes and push (commit in svn language) them to the "blessed" repository if they are ok with the changes made.

With git, if not used like svn, all modifications need approval.

You can read more about git's distributed workflow here : http://progit.org/book/ch5-1.html

Regards.
-- 
Sylvain Rabot <sylvain@abstraction.fr>
Previous: Bruce StephensNext: Jakub Narebski
Message 3 of 6 in “Can I enforce required approval on some files”
  1. Dominik GrontJul 20, 2010
  2. Bruce StephensJul 20, 2010
  3. Sylvain RabotJul 20, 2010
  4. Jakub NarebskiJul 20, 2010
  5. Ævar Arnfjörð BjarmasonJul 21, 2010
  6. Jakub NarebskiJul 21, 2010

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.