Aller au contenu principal

Sapling

Traduction Bêta Non Officielle

Cette page a été traduite par PageTurner AI (bêta). Non approuvée officiellement par le projet. Vous avez trouvé une erreur ? Signaler un problème →

Description

Afficher les informations Sapling lorsque vous êtes dans un dépôt Sapling.

Exemple de configuration

{
"type": "sapling",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#193549",
"background": "#4C9642",
"background_templates": [
"{{ if .Bookmark }}#4C9642{{ end }}"
],
"options": {
"fetch_status": true
}
}

Options

Récupération des informations

NameTypeDefaultDescription
fetch_statusbooleantruefetch the local changes - defaults to
native_fallbackbooleanfalsewhen set to true and sl.exe is not available when inside a WSL2 shared Windows drive, we will fallback to the native sl executable to fetch data. Not all information can be displayed in this case
status_formatsmap[string]stringa 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

Modèle (info)

modèle par défaut
 {{ if .Bookmark }}\uf097 {{ .Bookmark }}*{{ else }}\ue729 {{ .ShortHash }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}

Propriétés

NameTypeDescription
.RepoNamestringthe repo folder name
.WorkingStatuschanges in the worktree (see below)
.Descriptionstringthe first line of the commit's description
.Authorstringthe author of the commit
.Hashstringthe full hash of the commit
.ShortHashstringthe short hash of the commit
.Whenstringthe commit's relative time indication
.Bookmarkstringthe commit's bookmark (if any)
.Dirstringthe repository's root directory
.RelativeDirstringthe current directory relative to the root directory
.Newbooleantrue when there are no commits in the repo

État

NameTypeDescription
.Modifiedintnumber of modified changes
.Addedintnumber of added changes
.Deletedintnumber of removed changes
.Untrackedbooleannumber of untracked changes
.Cleanintnumber of clean changes
.Missingintnumber of missing changes
.Ignoredbooleannumber of ignored changes
.Stringstringa string representation of the changes above

Les modifications locales utilisent la syntaxe suivante :

IconDescription
~Modified
+Added
-Deleted
?Untracked
=Clean
!Missing
ØIgnored