Selaa lähdekoodia

Add new custom sub-command: who

Alois Mahdal 9 vuotta sitten
vanhempi
commit
4c075fbba0
2 muutettua tiedostoa jossa 13 lisäystä ja 0 poistoa
  1. 12
    0
      dotfiles/gittum/bin/who
  2. 1
    0
      dotfiles/gittum/main.gitconfig

+ 12
- 0
dotfiles/gittum/bin/who Näytä tiedosto

@@ -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 Näytä tiedosto

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