oh-my-posh/website/docs/segments/scm
Jan De Dobbeleer 28f6c19309 feat(git): replace branch properties with template
BREAKING CHANGE: this removes branch properties from the git segment
and replaces them with a single template. To migrate, use the following
guide.

*branch_max_length*

`"branch_max_length": 5` -> `"branch_template": "{{ trunc 5 .Branch }}"`

This will turn `feature/test-this-branch` into `featu`

If you want to display a truncate symbol at the end of the branch name:

`"branch_template": "{{ truncE 5 .Branch }}"`

This will turn `feature/test-this-branch` into `feat…`

*full_branch_path*

`"full_branch_path": false` -> `"branch_template": "{{ base .Branch }}"`

This will turn `feature/test-this-branch` into `test-this-branch`
2025-02-27 08:48:41 +01:00
..
fossil.mdx docs: add native_fallback property for mercurial segment 2024-11-11 12:40:06 +01:00
git.mdx feat(git): replace branch properties with template 2025-02-27 08:48:41 +01:00
mercurial.mdx docs: add native_fallback property for mercurial segment 2024-11-11 12:40:06 +01:00
plastic.mdx feat(git): replace branch properties with template 2025-02-27 08:48:41 +01:00
sapling.mdx docs: add native_fallback property for mercurial segment 2024-11-11 12:40:06 +01:00
svn.mdx docs: add native_fallback property for mercurial segment 2024-11-11 12:40:06 +01:00