Skip to content

Request: lock per branch option instead of global lock #3637

Open

Description

@aschmalt

Writing a request for enhancement for tracking purposes to see if there is an ETA on when/if locking file per branch vs global configuration option might be made available.

This is a needed feature for our development process to allow users to work on branches that are purposely diverged from the trunk/master. I can see where a global lock for other development processes would be helpful, but having a branch vs global locking style configuration would be extremely helpful.

This was referenced in the closed issue: #3284 and also #3365

Activity

  1. bk2204 commented on May 9, 2019

    @bk2204
    Member

    Hey, thanks for writing in.

    I agree this would be a nice feature to have. We don't currently have a plan to implement this at the moment, but we'll keep track of it. Part of the difficulty in implementing this is that a server will have to also recognize that a request is not global and provide the correct locking semantics.

  2. nintenjo64 commented on May 10, 2019

    @nintenjo64

    I am also interested in this feature support. As a game developer we deal with a lot of binary assets that dont merge so relies on Locking files to prevent clashing.

  3. S1M0N commented on Jul 19, 2019

    @S1M0N

    My team would also be interested in this functionality. Perhaps as an option flag in .gitattributes per file type that we want locking enabled on as well, this would allow flexibility where the default is global locking, but with the proper flag you can specify that some files or file types are branch only locking. This would resolve some workflow issues we have encountered when working within branches.

  4. nintenjo64 commented on Jul 20, 2019

    @nintenjo64
  5. bk2204 commented on Jul 22, 2019

    @bk2204
    Member

    This requires both server- and client-side support, so while we could implement it within the client, it wouldn't be effective unless the server supported it as well. We'd also need to find a way to make the server side reject requests that were for branch locking if it didn't support them.

    So while we're tracking this as a thing to have, and we'd be happy to see proposals if folks are interested in coming up with a solution, it's not an entirely trivial thing to implement.

  6. adrian-j-programmer commented on Apr 14, 2022

    @adrian-j-programmer

    I wish this was implemented as well... Without this feature branching workflow with git LFS has very limited application for projects that use feature/stabilization and hotfix branches.

  7. douglaslassance commented on Apr 14, 2022

    @douglaslassance

    As I also really needed this, I started working on my own solution. Maybe you'll find it of interest.

  8. grzpotry commented on Jun 19, 2024

    @grzpotry

    +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions