G-Node / gin-cli

Command line client for GIN
https://gin.g-node.org
Other
12 stars 6 forks source link

feature request: `gin commit --lock` #317

Open JuliaSprenger opened 2 years ago

JuliaSprenger commented 2 years ago

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

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?