Skip to content

Instantly share code, notes, and snippets.

@Donmclean
Last active April 25, 2018 09:16
Show Gist options
  • Select an option

  • Save Donmclean/06c08571d8d7ebcf7a8678b16d75dd2b to your computer and use it in GitHub Desktop.

Select an option

Save Donmclean/06c08571d8d7ebcf7a8678b16d75dd2b to your computer and use it in GitHub Desktop.

Revisions

  1. Donmclean revised this gist Apr 25, 2018. No changes.
  2. Donmclean created this gist Apr 25, 2018.
    8 changes: 8 additions & 0 deletions cloc.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    ### REQUIREMENTS: MUST HAVE cloc INSTALLED!!! -> (brew install cloc)
    ### USAGE: sh cloc.sh GIT_REPO_URL

    #!/usr/bin/env bash
    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