Subversion
Deze pagina is vertaald door PageTurner AI (beta). Niet officieel goedgekeurd door het project. Een fout gevonden? Probleem melden โ
Watโ
Toon Subversion-informatie wanneer je in een Subversion-repository bent. Werkt ook voor submappen. Voor maximale compatibiliteit, zorg ervoor dat je svn-executable up-to-date is (bijvoorbeeld wanneer branch- of statusinformatie onjuist is).
Voorbeeldconfiguratieโ
- json
- yaml
- toml
{
"type": "svn",
"style": "powerline",
"powerline_symbol": "๎ฐ",
"foreground": "#193549",
"background": "#ffeb3b",
"options": {
"fetch_status": true
}
}
type: svn
style: powerline
powerline_symbol: ๎ฐ
foreground: "#193549"
background: "#ffeb3b"
options:
fetch_status: true
type = "svn"
style = "powerline"
powerline_symbol = "๎ฐ"
foreground = "#193549"
background = "#ffeb3b"
[options]
fetch_status = true
Optiesโ
Informatie ophalenโ
Omdat meerdere Subversion-aanroepen de snelheid van de prompt kunnen verminderen, halen we standaard geen informatie op.
Je kunt de volgende opties op true zetten om het ophalen van extra informatie in te schakelen (en de template te vullen).
| Name | Type | Default | Description |
|---|---|---|---|
fetch_status | boolean | false | fetch the local changes |
native_fallback | boolean | false | when set to true and svn.exe is not available when inside a WSL2 shared Windows drive, we will fallback to the native svn executable to fetch data. Not all information can be displayed in this case |
status_formats | map[string]string | a key, value map allowing to override how individual status items are displayed. For example, "status_formats": { "Added": "Added: %d" } will display the added count as Added: 1 instead of +1. See the Status section for available overrides |
De velden Repo, Branch en BaseRev werken nog steeds wanneer fetch_status op false staat.
Template (informatie)โ
\ue0a0{{.Branch}} r{{.BaseRev}} {{.Working.String}}
Eigenschappenโ
| Name | Type | Description |
|---|---|---|
.Working | Status | changes in the worktree (see below) |
.Branch | string | current branch (relative URL reported by svn info) |
.BaseRev | int | the currently checked out revision number |
.Repo | string | current repository (repos root URL reported by svn info) |
Statusโ
| Name | Type | Description |
|---|---|---|
.Untracked | int | number of files not under version control |
.Modified | int | number of modified files |
.Deleted | int | number of deleted files |
.Added | int | number of added files |
.Moved | int | number of changed moved files |
.Conflicted | int | number of changed tracked files with conflicts |
.Changed | boolean | if the status contains changes or not |
.HasConflicts | boolean | if the status contains conflicts or not |
.String | string | a string representation of the changes above |
Lokale wijzigingen gebruiken de volgende syntax:
| Icon | Description |
|---|---|
? | Untracked |
~ | Modified |
- | Deleted |
+ | Added |
> | Moved |
! | Conflicted |