GitHub 42
Skip to content

comark/git-graph/invalid-max-count

Give max-count a whole number

max-count keeps the newest commits, as git log -n does, and folds the rest into one row. It takes a whole number from 1; anything else is ignored and every commit shows.

Incorrect

2 branches · 3 commits
#815 Stop polling closed flowsmain5b8cb33
Bundle the enterprise SKUrelease/2.3869bb73
#812 Alert links keep their filtersef1419c
::git-graph{max-count="two"}
```
* 5b8cb33 ef1419c (HEAD -> main) Stop polling closed flows (#815)
| * 869bb73 ef1419c (release/2.3) Bundle the enterprise SKU
|/
* ef1419c Alert links keep their filters (#812)
```
::
md

Correct

2 branches · 2 commits
#815 Stop polling closed flowsmain5b8cb33
Bundle the enterprise SKUrelease/2.3869bb73
1 more commit
Commits left out
::git-graph{max-count=2}
```
* 5b8cb33 ef1419c (HEAD -> main) Stop polling closed flows (#815)
| * 869bb73 ef1419c (release/2.3) Bundle the enterprise SKU
|/
* ef1419c Alert links keep their filters (#812)
```
::
md