summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Kleine-König <ukleinek@strlen.de>2010-09-24 16:41:57 +0200
committerUwe Kleine-König <ukleinek@strlen.de>2010-09-24 16:41:57 +0200
commit7f780e469f7deda4818c24cb2159edd432bed401 (patch)
treecd21ce258cfc7be1c6b0988e66b0721954d939b5
parent2c23dc127f77349b97cabe7f96a1377b730bbbdc (diff)
downloadubergit-7f780e469f7deda4818c24cb2159edd432bed401.tar.gz
ubergit-7f780e469f7deda4818c24cb2159edd432bed401.tar.xz
new todo: which encoding should be assumed for .ubergit/msg?
The message is used as commit log, so it should be recoded to $(git config i18n.commitencoding || echo UTF-8). Probably the most sane choice is the encoding of $1. $(git config i18n.commitencoding || echo UTF-8) won't work, as the config is a per-repository thing, while .ubergit/msg is possibly contained in different repositories. Signed-off-by: Uwe Kleine-König <ukleinek@strlen.de>
-rw-r--r--uglib.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/uglib.sh b/uglib.sh
index f90b668..e1b0126 100644
--- a/uglib.sh
+++ b/uglib.sh
@@ -132,6 +132,7 @@ is_ugish() {
## msg ## {{{2
msg() {
+ # XXX: encoding of msg file? Assume encoding of commit?
assert test "$#" = 1
assert is_topic "$1"