浏览代码

Add basic version of 'git slurp'

Alois Mahdal 9 年前
父节点
当前提交
ece36c155f
共有 2 个文件被更改,包括 15 次插入0 次删除
  1. 14
    0
      dotfiles/gittum/bin/slurp
  2. 1
    0
      dotfiles/gittum/main.gitconfig

+ 14
- 0
dotfiles/gittum/bin/slurp 查看文件

1
+#!/bin/bash
2
+
3
+#
4
+# Slurp - add everything, slurp into a WIP commit and push
5
+#
6
+
7
+test -f .git-slurp-ok || {
8
+    echo "you don't want this." >&2
9
+    exit 2
10
+}
11
+
12
+git add .
13
+git commit -m "WIP slurp $(date -Isec)"
14
+git push

+ 1
- 0
dotfiles/gittum/main.gitconfig 查看文件

37
   rbi = rebase --interactive
37
   rbi = rebase --interactive
38
   rmv = remote --verbose
38
   rmv = remote --verbose
39
   sibling = ! ~/.gittum/bin/sibling
39
   sibling = ! ~/.gittum/bin/sibling
40
+  slurp = ! ~/.gittum/bin/slurp
40
   st = status
41
   st = status
41
   sh = show
42
   sh = show
42
   who = ! ~/.gittum/bin/who
43
   who = ! ~/.gittum/bin/who