gitg should recognize branch main as well as master
The trend is to the replace the term master
with main
in git repositories. If a repository does not have a master branch gitg emits a warning like Failed to lookup reference (refs/heads/master): reference 'refs/heads/master' not found
.
The defaults for mainline should include ref/heads/main
along with refs/heads/master
and the warning should be suppressed if either one of those is branches is found.
https://gitlab.gnome.org/GNOME/gitg/-/blob/master/gitg/history/gitg-history.vala#L440-472