aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-05-01 17:23:15 +0000
committerJo-Philipp Wich <jow@openwrt.org>2015-05-01 17:23:15 +0000
commitf2277a967d949e89f36a57d59fb2b3830a3c5141 (patch)
tree5c3a41be2c9450a468825f31d8d4f997be9cc6ad
parent1170a3de76600cfdfaca84b9bedf7c101f44f813 (diff)
downloadupstream-f2277a967d949e89f36a57d59fb2b3830a3c5141.tar.gz
upstream-f2277a967d949e89f36a57d59fb2b3830a3c5141.tar.bz2
upstream-f2277a967d949e89f36a57d59fb2b3830a3c5141.zip
env: allow passing a commit message on save
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 45592
-rwxr-xr-xscripts/env5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/env b/scripts/env
index 5542b2017b..63e26eb154 100755
--- a/scripts/env
+++ b/scripts/env
@@ -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
}