ソースを参照

Add new custom sub-command: who

Alois Mahdal 9 年 前
コミット
4c075fbba0
共有2 個のファイルを変更した13 個の追加0 個の削除を含む
  1. 12
    0
      dotfiles/gittum/bin/who
  2. 1
    0
      dotfiles/gittum/main.gitconfig

+ 12
- 0
dotfiles/gittum/bin/who ファイルの表示

@@ -0,0 +1,12 @@
1
+#!/bin/bash
2
+#
3
+# see whose tracks are most visible here
4
+
5
+path="${1:-.}"
6
+
7
+git log --pretty=format:%ae -- "$path" \
8
+  | sort \
9
+  | uniq -c \
10
+  | sort -n \
11
+  | tac \
12
+  | head

+ 1
- 0
dotfiles/gittum/main.gitconfig ファイルの表示

@@ -38,3 +38,4 @@
38 38
   sibling = ! ~/.gittum/bin/sibling
39 39
   st = status
40 40
   sh = show
41
+  who = ! ~/.gittum/bin/who