Commit graph

8 commits

Author SHA1 Message Date
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
Jan De Dobbeleer 3b40f825c3 feat(git): expose .Rebase as an object
resolves #6044
2024-12-22 18:14:08 +01:00
L. Yeung f790b02b96 docs: add native_fallback property for mercurial segment 2024-11-11 12:40:06 +01:00
Jan De Dobbeleer 404f4e0f31 docs: use Config component instead of raw JSON 2024-11-04 12:15:40 +01:00
David Kizivat a1ff6b5c4a
feat(git): add lists of commit's head, tag and remote references 2024-09-09 18:53:48 +02:00
Jan De Dobbeleer 7a6478269c feat(git): mapped branches
resolves #4979
2024-07-27 11:25:12 +02:00
Jan De Dobbeleer 7081cac3a2 feat(git): enable posh-git from the git segment config
BREAKING CHANGE: To use the posh-git module output, you must now set the
`source` property to `pwsh` in the git segment configuration.

In case you are using the default configuration,
you don't need to change anything.
2024-07-26 08:11:57 +02:00
Jan De Dobbeleer f891a26fe9 docs(sidebar): restructure segment layout
resolves #5171
2024-07-05 12:31:42 +02:00