commit 3615eb9d35e5870006815fb2facdd6d4a2e5c33f parent 9fa4482f3447f98feb75fdea266c19315fd411bb Author: hhvn <dev@hhvn.uk> Date: Sat, 15 May 2021 13:22:48 +0100 .c/g/config .c/g/sloccount .c/g/m/m/git-sc.1: add sc command Diffstat:
M | .config/git/config | | | 1 | + |
A | .config/git/man/man1/git-sc.1 | | | 19 | +++++++++++++++++++ |
A | .config/git/sloccount | | | 4 | ++++ |
3 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/.config/git/config b/.config/git/config @@ -16,6 +16,7 @@ ef = !sh ~/.config/git/effort fi = !sh ~/.config/git/find du = !sh ~/.config/git/disk-usage + sc = !sh ~/.config/git/sloccount br = branch se = send-email ad = add diff --git a/.config/git/man/man1/git-sc.1 b/.config/git/man/man1/git-sc.1 @@ -0,0 +1,19 @@ +.Dd 15 May 2021 +.Dt git-sc 1 +.Os hhvn-git(7) +.Sh Name +.Nm git-sc +.Nd calls +.Xr sloccount 1 +on files tracked by git +.Sh SYNOPSIS +.Nm git sc +.Op Ar SLOCCOUNT-OPTIONS +.Sh SEE ALSO +.Bl -item -compact +.It +.Xr git-ls-files 1 +.It +.Xr sloccount 1 +.Sh AUTHOR +.An hhvn Aq Mt dev@hhvn.uk . diff --git a/.config/git/sloccount b/.config/git/sloccount @@ -0,0 +1,4 @@ +#!/bin/sh + +export IFS=$(printf "\n\t") +sloccount "$@" $(git ls-files)