summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-05-09 21:41:25 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-05-16 13:20:03 +0200
commit46b93bba0eb14f0823cb3571b6b8ad3913ebcc7c (patch)
tree0cb109291599c17c91db2472a3803052798d2168 /docs
parentd2d50aedd046f3c32f5106c951647240d2f3a777 (diff)
Add config git.mainBranches
It defaults to {"master", "main"}, but can be set to whatever branch names are used as base branches, e.g. {"master", "devel", "v1.0-hotfixes"}. It is used for color-coding the shas in the commit list, i.e. to decide whether commits are green or yellow.
Diffstat (limited to 'docs')
-rw-r--r--docs/Config.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/Config.md b/docs/Config.md
index e3890f9f6..f752e026b 100644
--- a/docs/Config.md
+++ b/docs/Config.md
@@ -88,6 +88,9 @@ git:
# displays the whole git graph by default in the commits panel (equivalent to passing the `--all` argument to `git log`)
showWholeGraph: false
skipHookPrefix: WIP
+ # The main branches. We colour commits green if they belong to one of these branches,
+ # so that you can easily see which commits are unique to your branch (coloured in yellow)
+ mainBranches: [master, main]
autoFetch: true
autoRefresh: true
branchLogCmd: 'git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium {{branchName}} --'