Ver código fonte

Add new git utility script and an alias

Alois Mahdal 9 anos atrás
pai
commit
1c6f1ab5e4
2 arquivos alterados com 17 adições e 0 exclusões
  1. 16
    0
      dotfiles/gittum/bin/whoo
  2. 1
    0
      dotfiles/gittum/main.gitconfig

+ 16
- 0
dotfiles/gittum/bin/whoo Ver arquivo

@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+#
3
+# totally sniff every line in history to see whose
4
+# are the lines here
5
+
6
+
7
+path="${1:-}"
8
+maybe_path=""
9
+test -n "$path" && maybe_path="-- $path"
10
+
11
+git ls-tree -r -z --name-only HEAD $maybe_path \
12
+  | xargs -0 -n1 git blame --line-porcelain HEAD \
13
+  | grep  "^author " \
14
+  | sort \
15
+  | uniq -c \
16
+  | sort -nr

+ 1
- 0
dotfiles/gittum/main.gitconfig Ver arquivo

@@ -39,6 +39,7 @@
39 39
   st = status
40 40
   sh = show
41 41
   who = ! ~/.gittum/bin/who
42
+  whoo = ! ~/.gittum/bin/whoo
42 43
 
43 44
 [tag]
44 45
     sort = version:refname