Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 1.05 KB

gm-repo-query.md

File metadata and controls

34 lines (30 loc) · 1.05 KB

gm repo query from nu-git-manager-sugar git (see source)

queries the .git/ directory as a database with nu_plugin_git_query

Examples

# get the commits of the current repo
gm repo query commits

# get the total number of insertions and deletions per author
gm repo query diffs
    | group-by name
    | transpose author data
    | insert insertions { get data.insertions | math sum }
    | insert deletions { get data.deletions | math sum }
    | reject data
#┬────author────┬insertions┬deletions
0│amtoine       │      6770│     5402
1│Antoine Stevan│      8537│     4562
2│Mel Massadian │       654│       64
─┴──────────────┴──────────┴─────────

Parameters

  • table <string@git-query-tables>:

Signatures

input output
nothing table