Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: gin commit --lock #317

Open
JuliaSprenger opened this issue Apr 22, 2022 · 0 comments
Open

feature request: gin commit --lock #317

JuliaSprenger opened this issue Apr 22, 2022 · 0 comments

Comments

@JuliaSprenger
Copy link

To add a new file to a repository in a locked state currently 3 steps are required as files can only be locked after being committed

  • gin commit <filename>
  • gin lock <filename>
  • gin commit <filename>

This is inconvenient and created unnecessary commits. From the git-annex perspective it is possible (and the default behaviour) that files are locked when added to the staging area. This way only a single commit would be required to commit a file in a locked state. Would it be possible to add a --lock flag to gin committhat automatically locks the committed files to simplify this procedure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant