Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a Base Repository
Nothing to show
Choose a base branch
Nothing to show
...
Choose a Head Repository
Nothing to show
Choose a head branch
Nothing to show
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 26 additions and 1 deletion.
  1. +0 −1 .vimrc
  2. +26 −0 bin/stats.sh
View
1 .vimrc
@@ -142,7 +142,6 @@ map <leader>T :CommandTFlush<cr>\|:CommandT %%<cr>
map <D-/> <plug>Commentary
imap <D-/> <Esc><plug>Commentary
-imap ` <Esc>
imap jj <Esc>
map <Left> :echo "no!"<cr>
View
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+set -e
+
+function main {
+ for rev in `revisions`; do
+ echo "`number_of_lines` `commit_description`"
+ done
+}
+
+function revisions {
+ git rev-list --reverse HEAD
+}
+
+function commit_description {
+ git log --oneline -1 $rev
+}
+
+function number_of_lines {
+ git ls-tree -r $rev |
+ awk '{print $3}' |
+ xargs git show |
+ wc -l
+}
+
+main

No commit comments for this range