ClojureDocs

Nav

Namespaces

Clojure/Conj 2026 — Charlotte, NC — Sept 30 - Oct 2 Learn More & Get Tickets →

git-count-revs

  • (git-count-revs {:keys [dir git-command path], :or {git-command "git"}, :as params})
Shells out to git and returns count of commits on this branch:
  git rev-list HEAD --count
 Options:
  :dir - dir to invoke this command from, default = current directory
  :git-command - git command to use, default = "git"
  :path - path to count commits for relative to dir