Skip to content

Instantly share code, notes, and snippets.

@flymin
Last active February 13, 2020 04:12
Show Gist options
  • Select an option

  • Save flymin/d383bf2804c8e24bbf204c2a8926efbd to your computer and use it in GitHub Desktop.

Select an option

Save flymin/d383bf2804c8e24bbf204c2a8926efbd to your computer and use it in GitHub Desktop.
[LineCal] Calculate code line in a github repo #shell
#!/bin/bash
set -e
git clone --depth 1 "$1" temp-linecount-repo
printf "('temp-linecount-repo' will be deleted automatically)\n\n\n"
cloc temp-linecount-repo
rm -rf temp-linecount-repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment