Skip to content

Commit 472565b

Browse files
committed
hg-functions: save passes 2nd and later arguments to hg if they exist
1 parent fd97ed6 commit 472565b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

bin/hg-functions

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ alias push='pull && hg push'
77
# Commits, and prepends the current directory name to the commit message.
88
# Just pass it the commit message as an argument.
99
function save {
10-
hg commit -m "[${PWD##*/}] ${1}"
10+
local msg=$1; shift
11+
hg commit -m "[${PWD##*/}] ${msg}" $*
1112
}
1213

1314
# Regens, commits, and pulls/pushes, all in one package.
1415
# Pass it the commit message as an argument.
1516
function rcommit {
1617
regenerate && save "${1}" . && push
17-
}
18+
}

0 commit comments

Comments
 (0)