Skip to content

Instantly share code, notes, and snippets.

View vladimirshkoda's full-sized avatar
👾
B, A, ↓, ←, A, ↓, C, →, ↑, ↓

Vladimir Shkoda vladimirshkoda

👾
B, A, ↓, ←, A, ↓, C, →, ↑, ↓
View GitHub Profile
from click import command, option, Option, UsageError
class MutuallyExclusiveOption(Option):
def __init__(self, *args, **kwargs):
self.mutually_exclusive = set(kwargs.pop('mutually_exclusive', []))
help = kwargs.get('help', '')
if self.mutually_exclusive:
ex_str = ', '.join(self.mutually_exclusive)
kwargs['help'] = help + (
@eyecatchup
eyecatchup / git-commit-log-stats.md
Last active July 12, 2024 09:40
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.