Skip to content

gimme commits

Returns commits that match the given filters.

gimme commits [flags]

What does it look like?

What are the flags?

  -A, --author strings                   Commit author name or email. Comma separated list, flag can be repeated. For example, -A='v1,v2' -A='v3', results in 'v1,v2,v3'
      --include-co-authored              Specify whether commits with 'Co-authored-by' should be included. Co-authored commits are printed with dimmed color.
      --changes string                   Specify constrain for total number of changes (added and deleted) lines in a given commit. Cannot be used with '--insertions' and '--deletions'.
  -i, --insertions --addition --added    Specify constrain for total number of added lines in a given commit. Aliases: --addition --added.
  -d, --deletions --del                  Specify constrain for total number of deleted lines in a given commit. Aliases: --del.
      --changed-files string             Specify constrain for total number of changed files in a given commit.
      --before time.Time                 Limits to commits newer than a given date.
      --after time.Time                  Limits to commits older than a given date.
      --raw-expression string            Specify raw expression that should be matched on each commit.
      --oneline                          Limits printed details to one line per commit.
      --repo string                      Specify git repository path. (default ".")
  -h, --help                             help for commits
  -v, --verbose int or string[=simple]   Prints more verbose output. Allowed values: 0 - disable, 1 - simple, 2 - trace (default 0 - disable)

Examples

List all Hakuna Matata's commits with min 42 lines added AND less than 42 deleted.

gimme commits --author 'Hakuna Matata' --insertions '>= 42' --deletions '<42'

List all commits with minimum 42 changed (added + deleted) lines.

gimme commits --changes '>42'

List all commits with custom query with AND operator. It's default behaviour when flags are used.

gimme commits --raw-expression 'insertions > 42 && deletions > 42'

List all commits with custom query with AND operator. It's default behaviour when flags are used.

gimme commits --raw-expression 'insertions > 42 && deletions > 42'

List all commits with custom query with OR operator.

gimme commits --raw-expression 'insertions > 42 || deletions > 42 || filesChanged > 42'

SEE ALSO

  • gimme - Insights about a Git(Hub) repository.
Back to top