Explorar o código

env: allow passing a commit message on save

Signed-off-by: Jo-Philipp Wich <[email protected]>

SVN-Revision: 45592
Jo-Philipp Wich %!s(int64=10) %!d(string=hai) anos
pai
achega
f2277a967d
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      scripts/env

+ 3 - 2
scripts/env

@@ -15,7 +15,8 @@ Commands:
 	delete <name>     Delete an environment
 	delete <name>     Delete an environment
 	rename <newname>  Rename the current environment
 	rename <newname>  Rename the current environment
 	diff              Show differences between current state and 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
 	revert            Revert your changes since last save
 
 
 Options:
 Options:
@@ -109,7 +110,7 @@ env_diff() {
 
 
 env_save() {
 env_save() {
 	env_init
 	env_init
-	env_sync
+	env_sync "$@"
 	env_link_config
 	env_link_config
 }
 }