summary refs log tree commit diff
path: root/bin/git-blame-from-line-number
diff options
context:
space:
mode:
Diffstat (limited to '')
-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