env: allow passing a commit message on save
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 1 May 2015 17:23:15 +0000 (17:23 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 1 May 2015 17:23:15 +0000 (17:23 +0000)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 45592

scripts/env

index 5542b20..63e26eb 100755 (executable)
@@ -15,7 +15,8 @@ Commands:
        delete <name>     Delete an environment
        rename <newname>  Rename the current environment
        diff              Show differences between current state and environment
-       save              Save your changes to the environment
+       save [message]    Save your changes to the environment, optionally using
+                         the given commit message
        revert            Revert your changes since last save
 
 Options:
@@ -109,7 +110,7 @@ env_diff() {
 
 env_save() {
        env_init
-       env_sync
+       env_sync "$@"
        env_link_config
 }