summary refs log tree commit diff
path: root/bin/git-blame-from-line-number
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-01-17 07:17:17 -0800
committerFranck Cuny <franckcuny@gmail.com>2016-01-17 07:17:17 -0800
commite58a6497d050480c56b9689004b9ded1cc2b0b9d (patch)
tree291b4ae5b114d06d96498f2312a9ab3e466ca501 /bin/git-blame-from-line-number
parent[emacs] some small changes to the UI. (diff)
downloademacs.d-e58a6497d050480c56b9689004b9ded1cc2b0b9d.tar.gz
Remove configuration for `vim` and all the scripts
No need to carry a configuration for `vim` anymore, and most of the
scripts are either useless, or have moved to the *toolbox* repository on
GitHub (and are now in go, and sometimes with tests).
Diffstat (limited to 'bin/git-blame-from-line-number')
-rwxr-xr-xbin/git-blame-from-line-number23
1 files changed, 0 insertions, 23 deletions
diff --git a/bin/git-blame-from-line-number b/bin/git-blame-from-line-number
deleted file mode 100755
index dbe1970..0000000
--- a/bin/git-blame-from-line-number
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-usage() {
-  echo "usage: $0 <filename> <lineno>"
-  exit 1
-}
-
-filename="$1"
-
-[ -z "${filename}" ] && usage
-
-lineno="$2"
-
-[ -z "${lineno}" ] && usage
-
-line=$(git blame -L "${lineno}","${lineno}" "${filename}")
-sha=$(echo $line | awk '{print $1}')
-
-if [[ "${sha}" == "00000000" ]]; then
-  echo "${line}"
-else
-  git show "${sha}"
-fi