Skip to content

Commit

Permalink
add "status" to the name of git status config options
Browse files Browse the repository at this point in the history
  • Loading branch information
nn1ks committed Jun 21, 2020
1 parent 89fccc1 commit c59e1b3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,31 +98,31 @@ end

Type: `Boolean`, Default: `0`

- **`MSHP_GIT_STAGED_ICON`**
- **`MSHP_GIT_STATUS_STAGED_ICON`**

Sets the icon that is used to indicate uncommited and staged changes in the git repo.

Type: `String`, Default: `+`

- **`MSHP_GIT_UNSTAGED_ICON`**
- **`MSHP_GIT_STATUS_UNSTAGED_ICON`**

Sets the icon that is used to indicate uncommited and unstaged changes in the git repo.

Type: `String`, Default: `!`

- **`MSHP_GIT_UNTRACKED_ICON`**
- **`MSHP_GIT_STATUS_UNTRACKED_ICON`**

Sets the icon that is used to indicate untracked files in the git repo.

Type: `String`, Default: `!`

- **`MSHP_GIT_AHEAD_ICON`**
- **`MSHP_GIT_STATUS_AHEAD_ICON`**

Sets the icon that is used to indicate that your local branch is ahead of the upstream branch.

Type: `String`, Default: ``

- **`MSHP_GIT_BEHIND_ICON`**
- **`MSHP_GIT_STATUS_BEHIND_ICON`**

Sets the icon that is used to indicate that your local branch is behind the upstream branch.

Expand Down
20 changes: 10 additions & 10 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ pub struct Config {
pub git_branch_color: Color,
#[serde(deserialize_with = "deserialize_bool")]
pub git_branch_disable: bool,
pub git_staged_icon: String,
pub git_unstaged_icon: String,
pub git_untracked_icon: String,
pub git_ahead_icon: String,
pub git_behind_icon: String,
pub git_status_staged_icon: String,
pub git_status_unstaged_icon: String,
pub git_status_untracked_icon: String,
pub git_status_ahead_icon: String,
pub git_status_behind_icon: String,
#[serde(deserialize_with = "deserialize_color")]
pub git_status_color: Color,
#[serde(deserialize_with = "deserialize_bool")]
Expand All @@ -36,11 +36,11 @@ impl Default for Config {
git_branch_icon: "".to_owned(),
git_branch_color: Color::Cyan,
git_branch_disable: false,
git_staged_icon: "+".to_owned(),
git_unstaged_icon: "!".to_owned(),
git_untracked_icon: "?".to_owned(),
git_ahead_icon: "↥".to_owned(),
git_behind_icon: "↧".to_owned(),
git_status_staged_icon: "+".to_owned(),
git_status_unstaged_icon: "!".to_owned(),
git_status_untracked_icon: "?".to_owned(),
git_status_ahead_icon: "↥".to_owned(),
git_status_behind_icon: "↧".to_owned(),
git_status_color: Color::Cyan,
git_status_disable: false,
user_indicator: "$".to_owned(),
Expand Down

0 comments on commit c59e1b3

Please sign in to comment.