浏览代码

Improve git-slurp message

Alois Mahdal 8 年前
父节点
当前提交
eac13e4b8d
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 10
    1
      dotfiles/gittum/bin/slurp

+ 10
- 1
dotfiles/gittum/bin/slurp 查看文件

@@ -9,6 +9,15 @@ test -f .git-slurp-ok || {
9 9
     exit 2
10 10
 }
11 11
 
12
+mkmsg() {
13
+    #
14
+    # Create the slurp message
15
+    #
16
+    local host=$(hostname)
17
+    local date=$(date -Isec)
18
+    echo "WIP slurp, $date at $host"
19
+}
20
+
12 21
 git add .
13
-git commit -m "WIP slurp $(date -Isec)"
22
+git commit -m "$(mkmsg)"
14 23
 git push